0134597747
Merge remote-tracking branch 'inventree/master' into label-api
...
# Conflicts:
# InvenTree/locale/de/LC_MESSAGES/django.po
# InvenTree/locale/en/LC_MESSAGES/django.po
# InvenTree/locale/es/LC_MESSAGES/django.po
2021-01-14 23:56:23 +11:00
1316e6bf5b
Properly save user data when creating a new StockItem
2021-01-14 11:24:52 +11:00
e92e5dfe8f
Merged master
2021-01-13 17:08:01 -05:00
59c0a50289
Separated category from part permissions and location from stock item permissions
2021-01-13 13:35:49 -05:00
28fb1b5fab
Added owner model to admin page and added test cases
2021-01-13 11:38:37 -05:00
0a0a47a5e4
Added location owner change test case to verify stock item owner in that location is also updated
2021-01-12 17:11:46 -05:00
3054c637dd
Removed f-string debug
2021-01-12 16:42:09 -05:00
5ca03af3e2
Improved Owner.get_owner method and fixed tests (try#2)
2021-01-12 16:36:29 -05:00
49c954aa68
Fixed test cases?
2021-01-12 15:02:44 -05:00
452d22579a
Removed f-string causing build failure
2021-01-12 13:23:14 -05:00
b6135fda74
Updated templates and a lot of manual testing
2021-01-12 13:16:04 -05:00
6f3cbb4e14
Switched to global owner model, need to validate use-cases table and fix tests
2021-01-11 17:41:29 -05:00
6a88bdb37d
StockLocation owner is now a GenericForeignKey that can be set to user or group models
2021-01-11 12:56:40 -05:00
21d5440f98
Remove unused views
2021-01-09 21:55:05 +11:00
f26f1c38a2
Merged master
2021-01-07 13:50:29 -05:00
d0fb69e67d
Add option to enable / disable stock expiry feature
...
- Simply hides fields in form views
2021-01-05 08:50:07 +11:00
7d7d5d24cc
Pre-fill stockitem expiry date in CreateStockItem form
2021-01-04 23:40:51 +11:00
2ad090c224
pop purchase_price field for StockItemEdit form
2021-01-03 13:15:42 +11:00
fe0d356675
pops the purchase_price field instead of using a HiddenInput
...
Using a HiddenInput on a MoneyFormField causes a validation error, for some reason...
2021-01-03 13:13:14 +11:00
3ff76fbdab
Merging master and resolved conflict
2020-12-18 17:08:37 -05:00
297bfd776c
Pre-select a template if only one matching one exists
2020-12-15 12:31:02 +11:00
648595cf18
Hide purchase price field for non-purchaseable parts
2020-12-14 09:55:39 +11:00
5c6939429a
Improved handling of stock location owner
2020-12-02 17:19:41 -05:00
1a7a460ba8
Hidden owner field when ownership control is disabled
2020-12-02 14:05:45 -05:00
de1dfdcc38
Improved naming of new setting and variables
2020-12-02 13:38:53 -05:00
2bdd1305ed
Fix style
2020-12-02 13:26:26 -05:00
c66ac2579e
Updated StockItem create/edit view with ownership control
2020-12-02 13:25:33 -05:00
2d7461f609
Updated StockLocation create/edit view with ownership control
2020-12-02 12:05:00 -05:00
6144d7e209
Fix for StockItem creation form
...
- purchase_price field was required (should not be!)
- Fixed some validation issues
- Cleaned up form implementation
2020-11-17 15:29:44 +11:00
391eeb0e46
Specify default currency when creating a new stock item
2020-11-12 11:50:59 +11:00
56b287b2c8
Logic fix for editing stock item creation form
2020-11-04 08:29:09 +11:00
500da8099b
Add forms / views for creating a new build output, and completing the build
...
- Also some refactoring of how forms are handled and saved
2020-11-02 22:56:26 +11:00
3a702266e6
Merge remote-tracking branch 'inventree/master' into build-fixes
...
# Conflicts:
# InvenTree/InvenTree/views.py
# InvenTree/build/views.py
# InvenTree/locale/de/LC_MESSAGES/django.po
# InvenTree/locale/en/LC_MESSAGES/django.po
# InvenTree/locale/es/LC_MESSAGES/django.po
# InvenTree/order/views.py
# InvenTree/part/api.py
# InvenTree/part/views.py
# InvenTree/templates/js/bom.js
2020-10-30 22:44:25 +11:00
e049ca1a85
More refactoring
2020-10-30 16:54:05 +11:00
c533f59405
Refactor how form errors are handled
...
- Use form.add_error (as the django gods intended)
2020-10-30 16:04:56 +11:00
5c5641d884
Update calls to post_save
2020-10-30 10:12:42 +11:00
4a7e9a2278
Update translations and PEP fixes
2020-10-28 23:59:18 +11:00
091a9d9803
Refactor how form errors are handled
...
- When in doubt, refer to the django docs
- There was a *much* better way (thanks, form.add_error)!
- The anti-pattern was deleted, and lo, there was much rejoicing
- Some other refactoring too
2020-10-28 23:33:33 +11:00
652c2dbcbe
Automagically disable 'serial_numbers' field for StockItemCreate form
...
- Yay, ajax magic!
2020-10-20 22:37:55 +11:00
095cfe9845
Updated Stock permission views and templates
2020-10-06 08:55:40 -05:00
62734c4b72
Add a custom template for the install item form
2020-10-05 00:01:01 +11:00
42a75a8238
Add hidden input to the InstallStockForm form
...
- keeps track of "part" object
- so we can filter the stock_items queryset if the form validation fails
- Is there a more djangonic way of doing this??
2020-10-04 23:45:52 +11:00
9c27680202
Finish function to install stock item(s)
2020-10-04 21:32:21 +11:00
a686500df1
Calculate initial values for the view
2020-10-04 21:02:20 +11:00
fd22e713ff
Filter available stock items by Part reference
2020-10-04 20:50:06 +11:00
f04977e7e1
Add form / view for installing a stock item into another stock item
2020-10-04 20:41:28 +11:00
d348d90fbe
Cleanup errors in unit testing
2020-09-28 22:08:38 +10:00
b2b22762ef
style fixes
2020-09-28 22:01:45 +10:00
df8d1fb32b
Add functions to install and uninstall stock items
2020-09-28 21:52:23 +10:00
81ce284264
Select the "default" where we wish to uninstall parts
2020-09-28 21:41:35 +10:00