Oliver Walters
|
fbb120da53
|
Use collapse template in allocation page
|
2019-05-02 18:53:03 +10:00 |
|
Oliver Walters
|
6e8c1bcc84
|
Add views to Create / Edit / Delete a PartAttachment
- Buttons to edit or delete existing attachments
- Button to add a new attachment
- Fixed conflicting migrations
|
2019-05-02 17:29:21 +10:00 |
|
Oliver Walters
|
505191089f
|
Added buttons to edit and delete attachments
|
2019-05-02 01:06:06 +10:00 |
|
Oliver Walters
|
9614ac2958
|
Move attachments list to attachments tab
|
2019-05-02 01:06:06 +10:00 |
|
Oliver Walters
|
ad6f4e19b1
|
Add 'comment' field to part attachment model
|
2019-05-02 01:06:06 +10:00 |
|
Oliver Walters
|
2181c82a31
|
Add 'attachments' tab for Part
|
2019-05-02 01:05:32 +10:00 |
|
Oliver Walters
|
7c11d917de
|
Bug fixes
- Part creation form was setting a field as HiddenInput() rather than its widget
- Added 'comment' file to FileAttachment model
|
2019-05-01 09:40:49 +10:00 |
|
Oliver Walters
|
436d158cfe
|
Merge remote-tracking branch 'inventree/master' into build-allocation
# Conflicts:
# InvenTree/company/templates/company/tabs.html
|
2019-05-01 08:15:58 +10:00 |
|
Oliver Walters
|
b6becbc570
|
Rework build allocation
- Each item renders as a collapsible panel with overview data at the top
|
2019-05-01 07:48:46 +10:00 |
|
Oliver Walters
|
7e7ac60a1a
|
Tweaks
- Can't edit build status directly
- Refresh BOM table on reload
- Hide Company tabs that are not yet functional
|
2019-04-30 20:55:28 +10:00 |
|
Oliver Walters
|
395db4df38
|
Pepe fixes
|
2019-04-30 00:18:58 +10:00 |
|
Oliver Walters
|
8ec4101edd
|
Reduce items presented in BOM creation list
- Don't allow selection of parts that are already in the BOM!
|
2019-04-30 00:16:20 +10:00 |
|
Oliver Walters
|
c29827e45a
|
Add API endpoint and serializer for BuildItem model
|
2019-04-29 22:59:42 +10:00 |
|
Oliver Walters
|
e25579141e
|
Rename BuildItemAllocation to BuildItem
|
2019-04-29 22:30:21 +10:00 |
|
Oliver Walters
|
6326d6d050
|
Fixed spelling mistake
|
2019-04-29 22:21:18 +10:00 |
|
Oliver Walters
|
3b838d29ec
|
Small fixes
- Hide some tabs that aren't functional yet
- Hide fields instead of marking them as disabled
- Default behaviour is to allow all hosts
|
2019-04-29 18:35:16 +10:00 |
|
Oliver
|
99b386fb95
|
Merge pull request #185 from SchrodingersGat/active-part
Inactive part
|
2019-04-29 00:04:26 +10:00 |
|
Oliver Walters
|
07fbaa9dd9
|
Test fix
- Part list API handles 'category' filtering a bit differently
- Probably need to address this
|
2019-04-29 00:01:57 +10:00 |
|
Oliver Walters
|
05333e7e7d
|
PEP fixes
|
2019-04-28 23:58:14 +10:00 |
|
Oliver Walters
|
87411293cf
|
docstring improvements
|
2019-04-28 23:57:29 +10:00 |
|
Oliver Walters
|
bc12af5994
|
Remove the 'supplier_part' field when first creating a Part object
- As the Part does not yet exist, there are no matching SupplierPart objects
|
2019-04-28 23:55:21 +10:00 |
|
Oliver Walters
|
4e3702384b
|
Limit SupplierPart option in Part edit form
- Only allow selection of SupplierPart that match the Part being edited
|
2019-04-28 23:50:35 +10:00 |
|
Oliver Walters
|
6612e91aec
|
Remove ability to delete part via API
|
2019-04-28 23:41:47 +10:00 |
|
Oliver Walters
|
73f672495d
|
Use API to mark part as active/inactive
|
2019-04-28 23:40:26 +10:00 |
|
Oliver Walters
|
492d705b39
|
Hide inactive parts in parts list
|
2019-04-28 23:22:54 +10:00 |
|
Oliver Walters
|
1a66a12d57
|
Enable Part API to filter by active status
|
2019-04-28 23:15:30 +10:00 |
|
Oliver Walters
|
495d414d54
|
Hide some options if a part is not active
|
2019-04-28 23:12:59 +10:00 |
|
Oliver Walters
|
260d890052
|
If a part is not active, display an INACTIVE Message on part page
|
2019-04-28 23:08:54 +10:00 |
|
Oliver Walters
|
c2a35b6656
|
Add 'active' field to Part model
|
2019-04-28 23:00:38 +10:00 |
|
Oliver Walters
|
ba49b080b0
|
Some small tweaks
|
2019-04-28 11:46:53 +10:00 |
|
Oliver
|
e5e6480099
|
Merge pull request #181 from SchrodingersGat/supplier-parts
Supplier parts
|
2019-04-28 11:28:32 +10:00 |
|
Oliver Walters
|
1171953e65
|
Limit SupplierPart options in CreateBomItem form
- If Part is selected, limit the options in supplier_part field
- Only allow supplier_parts which map back to the same part
|
2019-04-28 11:24:26 +10:00 |
|
Oliver Walters
|
a9fbbc3a37
|
Remove references to get_object_or_404
- Properly handle DoesNotExist errors
|
2019-04-28 11:09:19 +10:00 |
|
Oliver Walters
|
624c5094c5
|
Prevent editing of SupplierPart fields if initial values are provided
|
2019-04-28 10:57:32 +10:00 |
|
Oliver Walters
|
cd438f0569
|
Add generic method for retriving GET or POST params
|
2019-04-28 09:53:42 +10:00 |
|
Oliver Walters
|
e5fc43a00f
|
Fix improper references to template_name for ajax forms
- Should be ajax_template_name
|
2019-04-28 09:00:54 +10:00 |
|
Oliver Walters
|
9b77340782
|
Change field ordering for SupplierPart form
- Import fields first!
|
2019-04-28 08:55:29 +10:00 |
|
Oliver Walters
|
2108ee2eb7
|
Update makefile
|
2019-04-28 08:42:17 +10:00 |
|
Oliver Walters
|
d55ea1a982
|
PEP fixes
|
2019-04-28 01:09:48 +10:00 |
|
Oliver Walters
|
aa04941bf1
|
Add module-level docstrings for each app
|
2019-04-28 01:05:45 +10:00 |
|
Oliver Walters
|
ed3ae30248
|
Documentation for Part app
|
2019-04-27 22:18:07 +10:00 |
|
Oliver Walters
|
241f9783ad
|
Added further testing for Part/Bom API
|
2019-04-27 14:50:49 +10:00 |
|
Oliver Walters
|
95be2755f4
|
Adjust SupplierPart supplier foreignkey
- Limit choices to 'is_supplier'
|
2019-04-27 13:10:21 +10:00 |
|
Oliver
|
d70137dcbd
|
Merge pull request #167 from SchrodingersGat/api-tests
Api tests
|
2019-04-27 01:07:53 +10:00 |
|
Oliver Walters
|
f111a42058
|
Added API tests for Part API
- Uses DRF APITestCase class
|
2019-04-27 01:03:11 +10:00 |
|
Oliver
|
165264bd0e
|
Merge pull request #166 from SchrodingersGat/copy-button
Move 'duplicate' button to the Part options drop-down
|
2019-04-26 23:44:01 +10:00 |
|
Oliver Walters
|
69b34a0ff2
|
Move 'duplicate' button to the Part options drop-down
|
2019-04-26 23:39:33 +10:00 |
|
Oliver Walters
|
529beb3d58
|
Abstract DRF serializer validation
- Subclass InvenTree.InvenTreeModelSerializer
- Ensures model data is checked too (after serializer checks are performed)
|
2019-04-26 23:34:15 +10:00 |
|
Oliver Walters
|
e57a8cdcd1
|
Fix rendering of BOM table view
- Edit and delete rows now works
|
2019-04-26 23:32:22 +10:00 |
|
Oliver Walters
|
cec61655cf
|
Fix table rendering for 'used_in' view
|
2019-04-26 23:12:06 +10:00 |
|