eeintech
2bdd1305ed
Fix style
2020-12-02 13:26:26 -05:00
eeintech
c66ac2579e
Updated StockItem create/edit view with ownership control
2020-12-02 13:25:33 -05:00
eeintech
2d7461f609
Updated StockLocation create/edit view with ownership control
2020-12-02 12:05:00 -05:00
Oliver Walters
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
Oliver Walters
391eeb0e46
Specify default currency when creating a new stock item
2020-11-12 11:50:59 +11:00
Oliver Walters
56b287b2c8
Logic fix for editing stock item creation form
2020-11-04 08:29:09 +11:00
Oliver Walters
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
Oliver Walters
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
Oliver Walters
e049ca1a85
More refactoring
2020-10-30 16:54:05 +11:00
Oliver Walters
c533f59405
Refactor how form errors are handled
...
- Use form.add_error (as the django gods intended)
2020-10-30 16:04:56 +11:00
Oliver Walters
5c5641d884
Update calls to post_save
2020-10-30 10:12:42 +11:00
Oliver Walters
4a7e9a2278
Update translations and PEP fixes
2020-10-28 23:59:18 +11:00
Oliver Walters
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
Oliver Walters
652c2dbcbe
Automagically disable 'serial_numbers' field for StockItemCreate form
...
- Yay, ajax magic!
2020-10-20 22:37:55 +11:00
eeintech
095cfe9845
Updated Stock permission views and templates
2020-10-06 08:55:40 -05:00
Oliver Walters
62734c4b72
Add a custom template for the install item form
2020-10-05 00:01:01 +11:00
Oliver Walters
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
Oliver Walters
9c27680202
Finish function to install stock item(s)
2020-10-04 21:32:21 +11:00
Oliver Walters
a686500df1
Calculate initial values for the view
2020-10-04 21:02:20 +11:00
Oliver Walters
fd22e713ff
Filter available stock items by Part reference
2020-10-04 20:50:06 +11:00
Oliver Walters
f04977e7e1
Add form / view for installing a stock item into another stock item
2020-10-04 20:41:28 +11:00
Oliver Walters
d348d90fbe
Cleanup errors in unit testing
2020-09-28 22:08:38 +10:00
Oliver Walters
b2b22762ef
style fixes
2020-09-28 22:01:45 +10:00
Oliver Walters
df8d1fb32b
Add functions to install and uninstall stock items
2020-09-28 21:52:23 +10:00
Oliver Walters
81ce284264
Select the "default" where we wish to uninstall parts
2020-09-28 21:41:35 +10:00
Oliver Walters
39cfe39172
View / form / url for stock-uninstall form
2020-09-28 21:27:27 +10:00
Oliver Walters
f737ad2d38
Bugfix: CreateStockItem form
...
- hide the field rather than popping it
2020-09-05 20:31:18 +10:00
Oliver Walters
74f25ee7f9
Part: Extend logic for "latest" serial number
...
- Return value if it is a string
- Remove 'getNextSerialNumber' function
- Improve functionality of function which returns serial number placeholder string
2020-09-01 20:16:46 +10:00
Oliver Walters
9dcc23ee4e
Hide 'supplier part' options if no part is selected in the form
2020-08-26 23:40:15 +10:00
Ben Charlton
9149aa1536
Fix internal server error when serializing stock with no location
2020-08-24 18:04:22 +01:00
Oliver Walters
8f1af0f5f9
Add "enabled" field to Label class
...
- Only list labels which are enabled
- Allows labels to be hidden / disabled without being deleted
2020-08-23 09:07:15 +10:00
Oliver Walters
1807ba4e7b
Add form for selecting label template for a StockItem
2020-08-16 12:10:58 +10:00
Oliver Walters
cdde0f8c43
Add URL endpoint for downloading PDF labels
2020-08-16 11:12:21 +10:00
Oliver Walters
bdea29df04
Add functionality to return stock item from customer
2020-08-08 09:05:33 +10:00
Oliver Walters
10691b3d03
Allow creation of a stock item with zero quantity
2020-07-30 21:05:37 +10:00
Oliver Walters
b559816dca
Update translations
2020-06-12 10:25:07 +10:00
Oliver Walters
ca1526405b
PEP fixes
2020-06-04 19:51:43 +10:00
Oliver Walters
80019a3ed8
Add forms/views for manually assigning a stock item to a customer
2020-06-04 19:45:41 +10:00
Oliver Walters
046a00026c
remove debug print
2020-05-26 11:42:30 +10:00
Oliver Walters
ae4bfd07da
StockItemCreate form now has better logic for auto-detecting the part
2020-05-26 11:31:08 +10:00
Oliver Walters
d2c1e9e2b0
Type fixes
2020-05-25 14:24:29 +10:00
Oliver Walters
fdf57891fc
Form / view / etc for performing StockItem conversion
2020-05-25 14:16:38 +10:00
Oliver Walters
e63342418f
Improve / simplify logic for file attachments against test result object
2020-05-23 11:30:42 +10:00
Oliver Walters
5245442b11
Fixes
2020-05-22 22:27:52 +10:00
Oliver Walters
e6f56cb056
where one or more test report templates exist for a part,
...
provide a button for all stock-items of that part,
allowing the user to generate and download a test repotr
2020-05-22 22:25:05 +10:00
Oliver Walters
0bdb62f263
Fix pep
2020-05-18 14:32:30 +10:00
Oliver Walters
fce8e3fe05
add button to delete all test data for a given stock item
2020-05-18 14:29:35 +10:00
Oliver Walters
8ace71ef56
Complete refactor of the test-result table for stock item
2020-05-17 21:09:49 +10:00
Oliver Walters
cd0e66e3c6
Add ability to edit / assign attatched files to test result data
2020-05-17 16:17:05 +10:00
Oliver Walters
b3ca6a6ca7
PEP fixes
2020-05-17 00:26:44 +10:00