Oliver Walters
5c4781b5b4
Order: Improve help text(s)
2020-08-31 19:13:24 +10:00
Oliver Walters
b17c3f6e0f
Fix for empty option
2020-08-27 08:41:38 +10:00
Oliver Walters
27f7745231
Follow link to newly created StockItem
2020-08-27 08:37:18 +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
4be1b2928b
PEP fix
2020-08-26 23:50:49 +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
3a75682878
Add "pretty" name to the SupplierPart API
...
- Quick way to ensure the supplier part objects are printed the same way
- Use the pythonic back-end to render the data
2020-08-26 23:23:57 +10:00
Oliver Walters
5aa11063a0
Add function to update the 'options' for a given field in a modal
2020-08-26 23:13:32 +10:00
Oliver Walters
2037474fad
Option generation function now returns array, rather than flat text
2020-08-26 23:04:50 +10:00
Oliver Walters
02d17378a6
Add function to programatically generate a list of <option> elements
2020-08-26 23:02:25 +10:00
Oliver Walters
6ab34c3d0e
SupplierPart - Improve API
...
- The default DRF behaviour throws errors if the supplied query params do not conform to the limit_choices_to field
- This is non optimum! Don't want to have to handle these cases
- Do the filtering ourselves!
2020-08-26 22:44:22 +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
Oliver
ee0df29af0
Merge pull request #921 from eeintech/show_potential_bom_items_stock
...
Show 'available_stock' in Part string representation
2020-08-26 09:36:55 +10:00
eeintech
5d6def75cc
BoM export, Part stock: changed 'Location' header to 'Default Location'
2020-08-25 16:02:46 -05:00
eeintech
109307858a
Merge branch 'master' of git://github.com/inventree/InvenTree into bom_export_parameter_stock
2020-08-25 15:59:58 -05:00
Oliver
788d497e87
Merge pull request #931 from bcc/bug-serialize-no-location
...
Fix internal server error when serializing stock with no location
2020-08-25 08:38:35 +10:00
Ben Charlton
9149aa1536
Fix internal server error when serializing stock with no location
2020-08-24 18:04:22 +01:00
eeintech
946d824995
Switched to ModelChoiceField
2020-08-24 11:41:14 -05:00
eeintech
6f89f7dc7f
Merge branch 'master' into show_potential_bom_items_stock
2020-08-24 10:35:59 -05:00
Ben Charlton
b6f9590d55
Add default config example to config template
2020-08-24 15:24:18 +01:00
Ben Charlton
988d263ef1
Allow custom authentication / middleware in config.yaml
2020-08-24 15:05:21 +01:00
Oliver
2a4b9c6c5c
Merge pull request #929 from SchrodingersGat/label-enable
...
Label enable
2020-08-23 21:18:11 +10:00
Oliver Walters
ca1985e11a
PEP fixes
2020-08-23 21:10:45 +10:00
Oliver Walters
9a35293126
Remove PartFilterMixin class
2020-08-23 21:08:41 +10:00
Oliver Walters
ed5ad3c047
Rename 'part_filters' field to 'filters'
2020-08-23 21:05:54 +10:00
Oliver Walters
c849f618d5
Clean up implementation of test report matching
2020-08-23 21:03:29 +10:00
Oliver Walters
b7ae95686e
Add field "enabled" to Report template
2020-08-23 20:51:41 +10:00
Radek Hladik
f9149d041e
Collapse navbar on small screen
2020-08-23 10:56:29 +02:00
Oliver Walters
116d966d29
Delete "ReportTemplate" class
2020-08-23 09:10:56 +10:00
Oliver Walters
771b2117c4
Remove duplicated function
2020-08-23 09:08:24 +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
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
05fae4be87
Are more methods to tasks.py:
...
- static
- update
- install
- key
- coverage
The functionality of setup.py is now included here!
2020-08-21 21:08:04 +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
25cced3b90
Exclude MPTT fields from Part model resource
2020-08-21 20:08:16 +10:00
eeintech
9fa13aeae3
Show 'available_stock' in Part string representation
2020-08-20 15:38:41 -05:00
eeintech
89e63df1fb
Corrected style
2020-08-20 14:53:03 -05:00
eeintech
6fc275ca30
BoM export: added option to export part paremeters ( #126 ) and stocks ( #793 )
2020-08-20 13:53:27 -05:00
Oliver Walters
90d34cdfcf
StockItem: Allow customer field to be blank
2020-08-20 14:54:55 +10:00
Oliver
4f1b469cee
Merge pull request #915 from SchrodingersGat/tex-response
...
Tex response
2020-08-20 14:14:24 +10:00
Oliver Walters
8e0dfa9c6f
PEP fix
2020-08-20 14:05:55 +10:00
Oliver Walters
64ae181bf6
Add some more context data
2020-08-20 14:01:41 +10:00
Oliver Walters
5a8804f4bc
If LaTeX template errors, return the raw LaTeX!
2020-08-20 13:57:29 +10:00
Oliver Walters
0aeb7ddbdf
Allow column show/hide on BOM table
2020-08-20 08:57:11 +10:00
Oliver Walters
41c4a5376b
Bugfix: Recursive BOM display
...
- Actually request recursively! (duh)
- Fix the idField and parentIdField for the BOM display (was incredibly wrong)
- Sub-rows are initially displayed in the "collapsed" state
2020-08-20 08:52:22 +10:00
Oliver Walters
0faba39dfc
PEP: Remove unused variable
...
(cherry picked from commit e49a1c1ad21da10b67391df60d9f1410456fe4d0)
2020-08-19 14:08:52 +10:00
Oliver Walters
7e829e88af
Add option for including supplier data for BOM export
...
(cherry picked from commit d0b5550c865f1cce16e7bb123f2274c16151a2c5)
2020-08-19 14:08:47 +10:00
Oliver Walters
3d0012a3bf
Bugfix: accomodate missing manfufacturer links
...
If a supplier_part does not have an associated manufacturer, the code would break
(cherry picked from commit 965dba473937ef80ef556b484bfc513d00c73a43)
2020-08-19 14:08:41 +10:00