Oliver
22e30903b6
Merge pull request #965 from SchrodingersGat/api-stock-fix
...
Major bugfix for multiple annotations in API querysets
2020-09-05 23:42:25 +10:00
Oliver Walters
db214dfd73
Update queryset annotation for StockItem
...
- Query time reduced from 4.1 to 3.5s (for sample data)
2020-09-05 22:50:17 +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
bb9e8fa97b
Merge remote-tracking branch 'inventree/master' into multi-db-unit-test
...
# Conflicts:
# InvenTree/build/test_build.py
2020-09-02 20:02:22 +10:00
Oliver Walters
911727f7b7
Update test fixtures
...
- Can't assume that pk values will be assigned sensibly!
- Need to hard-code them in
2020-09-02 19:47:07 +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
e6c0a04131
Merge branch 'feature-non-int-serial' of git://github.com/bcc/InvenTree into bcc-feature-non-int-serial
2020-09-01 19:41:48 +10:00
Oliver Walters
1eeaa17085
Merge remote-tracking branch 'inventree/master'
2020-09-01 16:41:07 +10:00
Oliver Walters
ffbdb0317f
Add "focus" option when displaying a modal form
2020-09-01 12:43:37 +10:00
Oliver Walters
59e7474f75
Stock: More unit tests
...
- Add some more tests (would have caught a bug that was there already, darn it)
2020-08-31 20:09:43 +10:00
Oliver Walters
8615cad711
Stock: Fix serializers.py
...
- Use of read_only PrimaryKeyRelatedField was breaking POST via API
2020-08-31 20:08:07 +10:00
Ben Charlton
06552832cb
Style corrections
2020-08-28 17:30:16 +01:00
Ben Charlton
6b1696f8df
Merge branch 'master' into feature-non-int-serial
2020-08-28 17:14:02 +01:00
Oliver Walters
f6d8a3f229
Merge remote-tracking branch 'upstream/master'
2020-08-27 22:50:52 +10:00
Oliver Walters
27f7745231
Follow link to newly created StockItem
2020-08-27 08:37:18 +10:00
Oliver Walters
19329a9627
Merge remote-tracking branch 'inventree/master'
2020-08-27 00:21:42 +10:00
Oliver Walters
146dae6d43
Toot toot - it's the refactor tractor!
...
- New function for launching a CreateStockItem form
- Wraps up the previous code improvements into a single function
- Oh, the ease!
2020-08-27 00:08:02 +10:00
Oliver Walters
72899530cf
Add helper function to simplify reloading of field options
2020-08-26 23:43:19 +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
Oliver Walters
d44ad541eb
Add "callback" functionality for modal forms when a given field is changed
...
- Attach callback function
- Add a function to retrieve a field by name
2020-08-26 22:35:36 +10:00
Oliver Walters
54d0c4e8a8
Bugfix: Select test report template
...
- Actually, two bugs!
2020-08-26 14:29:49 +10:00
Ben Charlton
7d6055f06f
Merge branch 'master' into feature-non-int-serial
2020-08-25 09:28:42 +01:00
Ben Charlton
9c2d13b487
test non-numeric serials are handled correctly for ranges
2020-08-24 20:04:10 +01:00
Ben Charlton
d5a374f1fd
Make serial number suggestion DB independent, handle mixed types more cleanly and test
2020-08-24 19:49:32 +01:00
Ben Charlton
9149aa1536
Fix internal server error when serializing stock with no location
2020-08-24 18:04:22 +01:00
Ben Charlton
471ece136e
Merge branch 'master' into feature-non-int-serial
2020-08-24 11:12:07 +01:00
Oliver Walters
78826dc20b
Merge remote-tracking branch 'inventree/master'
2020-08-23 21:21:18 +10:00
Oliver
2a4b9c6c5c
Merge pull request #929 from SchrodingersGat/label-enable
...
Label enable
2020-08-23 21:18:11 +10:00
Oliver Walters
c849f618d5
Clean up implementation of test report matching
2020-08-23 21:03:29 +10: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
Ben Charlton
23cc3d9b06
Handle 'next serial' more gracefully
2020-08-21 19:17:58 +01:00
Ben Charlton
c31b30bf83
Fix simple tests
2020-08-21 18:53:51 +01:00
Ben Charlton
f7ed48809c
Support non-integer serial numbers
2020-08-21 17:36:49 +01:00
Ben Charlton
eeca3effee
Fix disabled form item from preventing stock location moves for items with serial numbers
2020-08-21 16:20:33 +01:00
Oliver Walters
98017cb8bd
Merge remote-tracking branch 'inventree/master'
2020-08-21 22:11:02 +10:00
Oliver Walters
59b3d8b5bc
Fix stocktake export
...
- Exclude MPTT fields
- Fix foreignkey field references
2020-08-21 20:08:47 +10:00
Oliver Walters
142a1462bb
Merge remote-tracking branch 'inventree/master'
2020-08-20 16:02:18 +10:00
Oliver Walters
90d34cdfcf
StockItem: Allow customer field to be blank
2020-08-20 14:54:55 +10:00
Oliver Walters
e67327953d
Merge remote-tracking branch 'inventree/master'
2020-08-16 15:10:23 +10:00
Oliver
b5b882d3b6
Merge pull request #906 from SchrodingersGat/blabel
...
Label Printing Functionality
2020-08-16 14:02:38 +10:00
Oliver Walters
d52278e423
Icon tweak
2020-08-16 13:45:58 +10:00
Oliver Walters
da079b23dc
Fix duplicate label printing menu action
2020-08-16 13:43:59 +10:00
Oliver Walters
a4267f76e8
Fixes for barcode data rendering
2020-08-16 13:39:05 +10:00
Oliver Walters
2bbc65cc59
Add "brief" version of QR codes
...
- Use this to render to labels (as it contains much less information)
2020-08-16 13:29:38 +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
18b3fd3256
Add context data to StockItemLabel model
2020-08-16 10:24:15 +10:00
Oliver Walters
2f77007dbe
Significant query speed improvements to stock list API
...
- Thanks, django-debug-toolbar!
- Gah, django DRF is the worst. Enforcing a PrimaryKeyRelatedSerializer seems to really improve speed
2020-08-15 21:15:11 +10:00
Oliver Walters
3b01614a38
Merge remote-tracking branch 'inventree/master'
2020-08-09 21:37:06 +10:00
Oliver Walters
cebba6909c
Revert thing
2020-08-09 21:21:12 +10:00
Oliver Walters
3336eb9f45
Default stock list behaviour is to only show in_stock items
2020-08-09 21:12:49 +10:00
Oliver Walters
0da9e0f834
Add "sent_to_customer" filter
2020-08-09 21:10:21 +10:00
Oliver
fcfd1f82d6
Merge pull request #898 from SchrodingersGat/filter-depleted
...
Filter depleted
2020-08-08 17:19:28 +10:00
Oliver Walters
402301e165
Add ability to filter stock items by "depleted" status
2020-08-08 17:06:22 +10:00
Oliver Walters
732405f738
Cannot edit quantity for serialized stock when adjusting
2020-08-08 17:01:29 +10:00
Oliver Walters
3831a04ce0
Merge remote-tracking branch 'inventree/master'
2020-08-08 09:52:48 +10:00
Oliver Walters
8d9cfd3678
Migration file for StockStatus codes
2020-08-08 09:44:21 +10:00
Oliver Walters
a2c3c1086c
Catch unhandled javascript errors
2020-08-08 09:31:57 +10:00
Oliver Walters
ff71fe6e93
Fix "in_stock" logic for StockItem
...
- Not in stock if it is at a customer!
2020-08-08 09:20:42 +10:00
Oliver Walters
861a2982db
Removed "SHIPPED" stock status code
2020-08-08 09:16:53 +10:00
Oliver Walters
bdea29df04
Add functionality to return stock item from customer
2020-08-08 09:05:33 +10:00
Oliver Walters
7b332d93ee
Rearrange button layouts
2020-08-08 08:48:27 +10:00
Oliver Walters
d65d76653c
Merge remote-tracking branch 'inventree/master'
2020-08-03 20:49: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
d90edab59f
Staff users are allowed to delete stock items that otherwise are not able to be deleted
2020-07-30 20:23:46 +10:00
Oliver Walters
5f2ca784c9
Merge branch 'negative-stock-fix'
2020-06-28 19:26:56 +10:00
Oliver Walters
930f903f5d
Add ability to display "out of stock" items against a part
2020-06-22 10:48:41 +10:00
Oliver Walters
82433db1ea
Merge remote-tracking branch 'inventree/master'
2020-06-12 18:16:23 +10:00
Oliver Walters
1ad4b8b131
Reorganize buttons for "Part" view
2020-06-12 18:11:57 +10:00
Oliver Walters
ab4e6548dc
Transfer stock items into a stock location using barcode scanning
2020-06-12 16:29:08 +10:00
Oliver Walters
351a55c9ea
Add the concept of "action groups" to the buttons for the Stock Location view
2020-06-12 11:14:33 +10:00
Oliver Walters
e1c503836d
Improve barcode icon in navbar
2020-06-12 10:56:52 +10:00
Oliver Walters
6064c6ceb5
Add dialog for linking a barcode with a stock item
2020-06-12 10:26:23 +10:00
Oliver Walters
b559816dca
Update translations
2020-06-12 10:25:07 +10:00
Oliver Walters
ba94b340dd
Add function to un-link barcode from a stock item
2020-06-12 10:12:31 +10:00
Oliver Walters
2d9b75c6ae
Include URL data in barcode scan endpoint
2020-06-11 19:21:38 +10:00
Oliver Walters
bc31cc550e
Consolidate buttons for stock item
2020-06-10 15:27:30 +10:00
Oliver Walters
f40a9d1dad
Merge remote-tracking branch 'inventree/master'
2020-06-09 16:28:59 +10:00
Oliver Walters
38dcdcad54
Update translation hooks
2020-06-09 16:18:38 +10:00
Oliver Walters
c7586b83e9
Fix display of buttons for stock item
...
(cherry picked from commit b23017b6bf
)
2020-06-09 13:15:12 +10:00
Oliver Walters
b23017b6bf
Fix display of buttons for stock item
2020-06-09 13:14:29 +10:00
Oliver Walters
a6a58b299b
Merge remote-tracking branch 'inventree/master'
2020-06-06 08:59:28 +10:00
Oliver Walters
126e42a022
Add "IPN" column to stock list table
2020-06-06 08:47:06 +10:00
Oliver Walters
7be158722f
Merge remote-tracking branch 'inventree/master'
2020-06-05 20:04:41 +10:00
Oliver Walters
16d261d956
Make description fields optional
2020-06-05 19:33:32 +10:00
Oliver Walters
9f599546de
Use stock status for determining "in stock"
2020-06-05 09:08:46 +10:00
Oliver Walters
408c6a4040
Filter stock list by "customer"
2020-06-05 09:05:57 +10:00
Oliver Walters
2c7e0bd321
Merge remote-tracking branch 'inventree/master'
2020-06-04 20:07:59 +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
d907136264
Display customer in stock item
2020-06-04 19:13:37 +10:00
Oliver Walters
fbd21827fb
Add 'customer' field to StockItem
2020-06-04 19:08:33 +10:00
Oliver Walters
4ddabb82ef
Add a button to assign stock item to customer
2020-06-04 11:50:55 +10:00
Oliver Walters
dd9584f487
Follow link when a new stock item is created
2020-05-30 20:58:52 +10:00
Oliver Walters
8459de7be2
Display a message if no stock location is set
2020-05-30 20:58:05 +10:00
Oliver Walters
b73044cd44
Merge remote-tracking branch 'inventree/master'
2020-05-29 13:47:19 +10:00
Oliver Walters
59d9e430b4
Remove unique-together requirement
...
- This is handled manually via the validate_unique function
2020-05-28 20:38:24 +10:00
Oliver Walters
774e26eb19
Mark some fields as not-required via the API
2020-05-28 20:33:33 +10:00
Oliver Walters
d0b3e0bd7c
Merge remote-tracking branch 'inventree/master'
2020-05-27 09:31:15 +10:00
Oliver Walters
78990a99e5
Fix serializer for stock item
2020-05-26 23:01:30 +10:00