Oliver Walters
556d6455e8
Add "packaging" field for StockItem
2021-02-19 11:08:58 +11:00
Oliver Walters
a9f255be85
Prevent stock item being added as an installed item inside itself
2021-02-18 18:01:41 +11:00
Oliver Walters
ef23ab1abc
Adds functionality for traversing "through" installed items to extract test results
2021-02-18 17:59:04 +11:00
Oliver Walters
2fa7c8706b
Wrap custom filter validation in try/except blocks
2021-02-10 20:40:15 +11:00
Oliver Walters
8fda2cf745
Fixes for unit tests
2021-01-29 12:47:46 +11:00
Oliver Walters
4ef6a6dc62
Translations for stock transaction notes
2021-01-29 12:23:22 +11:00
eeintech
72c7ceb553
Merged master and updated stock_table.html
2021-01-17 13:11:59 -05:00
eeintech
28fb1b5fab
Added owner model to admin page and added test cases
2021-01-13 11:38:37 -05:00
eeintech
6f3cbb4e14
Switched to global owner model, need to validate use-cases table and fix tests
2021-01-11 17:41:29 -05:00
eeintech
6a88bdb37d
StockLocation owner is now a GenericForeignKey that can be set to user or group models
2021-01-11 12:56:40 -05:00
Oliver Walters
01e27a0d59
Add simplified 'barcode' function for StockItem
2021-01-12 00:22:58 +11:00
Oliver Walters
b6cd2c215a
Adds function to provide simplified barcode for stock location
2021-01-11 21:32:31 +11:00
Oliver Walters
e133fff03e
Download PDF for labels
2021-01-09 21:50:42 +11:00
eeintech
f26f1c38a2
Merged master
2021-01-07 13:50:29 -05:00
Oliver Walters
bb72658e76
Rearrange button options for StockItem
2021-01-07 00:18:18 +11:00
Oliver Walters
e5b346e7fa
PEP fixes
2021-01-06 23:09:26 +11:00
Oliver Walters
e62873a650
Display "stale" status on StockItem info page
2021-01-06 22:21:18 +11:00
Oliver Walters
6d4c81e68b
Add ability to filter by 'expired' status in API
2021-01-04 00:19:48 +11:00
Oliver Walters
07cda765f0
Add "expiry_date" field to StockItem model
...
- Also adds "is_expired" function
2021-01-03 23:56:35 +11:00
eeintech
c9b3c16c6f
Added help text on owner fields
2020-12-01 17:46:11 -05:00
eeintech
e1fb7e5d98
Added owner field to both stock item and location tables and forms
2020-12-01 13:45:01 -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
ae7fbd6112
Add PEP8-naming extension for flake
...
- Enforcing python naming checks
2020-11-12 21:53:04 +11:00
Oliver Walters
e4f2eecb3b
Remove defunct 'build_order' field from StockItem model
...
- This is now handled by the new-and-improved build system, no longer required
2020-11-10 20:12:39 +11:00
Oliver Walters
734436b02e
Add integration of django-money
...
- Proper currency support
- Add PurchasePrice field to StockItem model
- This keeps track of both the price and the currency
- Display purchase price on the stockitem detail page
2020-11-10 16:22:42 +11:00
Oliver Walters
a6028f027a
Add setting to allow or prohibit duplicate IPN values
2020-11-10 09:03:26 +11:00
Oliver Walters
2b91f69c7d
Fix unit tests
2020-11-03 20:19:24 +11:00
Oliver Walters
b02c87ea50
Lots of work towards multiple build output
2020-11-02 01:24:31 +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
1caa341f8e
Fixes for unit tests
2020-10-30 21:34:56 +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
a263d2fdcd
Fixes for "auto allocate" concept
2020-10-29 00:49:01 +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
646fe40950
Require either serial or batch number to be set for trackable part
2020-10-27 22:00:38 +11:00
Oliver Walters
fb7d9a7edf
Move "getAvailableStockItems" to the build model
2020-10-23 23:33:27 +11:00
Oliver Walters
e02536071d
Add a "completed" field to the Build model
...
- Keeps track of how many outputs have been produced
- Will not be directly editable by the user
2020-10-20 23:59:37 +11:00
Oliver Walters
48e050d317
Add some more unit tests and validation code for the StockItem model
...
- Ensure that the build part matches the stockitem part!
2020-10-05 00:49:00 +11:00
Oliver Walters
fe3a72c6cc
Add some unit testing
2020-10-05 00:29:06 +11:00
Oliver Walters
26d113e8ad
Update IN_STOCK_FILTER to reject stock items which have is_building set to True
2020-10-05 00:14:04 +11:00
Oliver Walters
ee28b4eea5
Add "is_building" field to StockItem model
...
- This will be set to TRUE until a stock item has been completed
2020-10-05 00:12:42 +11:00
Oliver Walters
b9291c6705
Improve transaction note recording for the StockItem model
2020-10-04 23:33:43 +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
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
97b35d9269
Renamed related name "owned_parts" to "installed_parts"
2020-09-28 19:33:32 +10:00
Oliver Walters
b76e6a5023
Bugfix: Test result ordering was reversed!
2020-09-28 09:02:17 +10:00
Ben Charlton
f7ed48809c
Support non-integer serial numbers
2020-08-21 17:36:49 +01:00
Oliver Walters
90d34cdfcf
StockItem: Allow customer field to be blank
2020-08-20 14:54:55 +10:00