InvenTree/InvenTree/templates
Oliver 187707c892
Barcode Refactor (#3640)
* define a simple model mixin class for barcode

* Adds generic function for assigning a barcode to a model instance

* StockItem model now implements the BarcodeMixin class

* Implement simple unit tests for new code

* Fix unit tests

* Data migration for uid field

* Remove references to old 'uid' field

* Migration for removing old uid field from StockItem model

* Bump API version

* Change lookup_barcode to be a classmethod

* Change barcode_model_type to be a class method

* Cleanup for generic barcode scan and assign API:

- Raise ValidationError as appropriate
- Improved unit testing
- Groundwork for future generic implementation

* Further unit tests for barcode scanning

* Adjust error messages for compatibility

* Unit test fix

* Fix hash_barcode function

- Add unit tests to ensure it produces the same results as before the refactor

* Add BarcodeMixin to Part model

* Remove old format_barcode function from Part model

* Further fixes for unit tests

* Add support for assigning arbitrary barcode to Part instance

- Simplify barcode API
- Add more unit tests

* More unit test fixes

* Update unit test

* Adds generic endpoint for unassigning barcode data

* Update web dialog for unlinking a barcode

* Template cleanup

* Add Barcode mixin to StockLocation class

* Add some simple unit tests for new model mixin

* Support assigning / unassigning barcodes for StockLocation

* remove failing outdated test

* Update template to integrate new barcode support for StockLocation

* Add BarcodeMixin to SupplierPart model

* Adds QR code view for SupplierPart

* Major simplification of barcode API endpoints

- Separate existing barcode plugin into two separate classes
- Simplify and consolidate the response from barcode scanning
- Update unit testing

* Yet more unit test fixes

* Yet yet more unit test fixes
2022-09-15 14:14:51 +10:00
..
account Custom splash screen (#3499) 2022-08-09 09:42:53 +10:00
allauth_2fa Small visual tweaks to various auth views (#3238) 2022-06-23 07:09:17 +10:00
email Null units fix (#3663) 2022-09-08 15:18:43 +10:00
InvenTree out-of-scope:update settings value lookup to include typ (#3636) 2022-09-02 16:51:16 +10:00
js Barcode Refactor (#3640) 2022-09-15 14:14:51 +10:00
patterns/wizard fix endline 2022-05-20 13:35:07 +02:00
plugin fix endline 2022-05-20 13:35:07 +02:00
registration "normal" admin-logout message 2021-09-03 00:23:29 +02:00
sample fix endline 2022-05-20 13:35:07 +02:00
socialaccount/snippets fix trailing 2022-05-20 13:20:55 +02:00
403_csrf.html Adds a template for handling 403 errors due to CSRF issues (#3260) 2022-06-26 18:09:58 +10:00
403.html fix endline 2022-05-20 13:35:07 +02:00
404.html fix endline 2022-05-20 13:35:07 +02:00
500.html fix endline 2022-05-20 13:35:07 +02:00
503.html Fix splash screen for maintenance mode 503 page (#3651) 2022-09-07 00:04:06 +10:00
about.html Fix broken copy (#3314) 2022-07-09 12:49:53 +10:00
admin_button.html fix endline 2022-05-20 13:35:07 +02:00
attachment_button.html fix endline 2022-05-20 13:35:07 +02:00
attachment_table.html Fix API endpoint permission for the "AttachmentMixin" class (#3218) 2022-06-18 14:48:09 +10:00
base.html Remove custom javascript from auth pages (#3250) 2022-06-25 07:45:50 +10:00
clip.html fix endline 2022-05-20 13:35:07 +02:00
collapse_rows.html Sales order tables (#3225) 2022-06-18 22:22:00 +10:00
expand_rows.html Sales order tables (#3225) 2022-06-18 22:22:00 +10:00
filter_list.html fix endline 2022-05-20 13:35:07 +02:00
hover_image.html fix endline 2022-05-20 13:35:07 +02:00
mail.html fix endline 2022-05-20 13:35:07 +02:00
modal_csrf.html fix endline 2022-05-20 13:35:07 +02:00
modal_delete_form.html Add a generic DeleteForm and update AjaxDeleteView 2019-05-13 22:46:47 +10:00
modal_form.html same treatment for html 2021-05-06 14:33:03 +02:00
modals.html fix endline 2022-05-20 13:35:07 +02:00
navbar.html fix trailing 2022-05-20 13:20:55 +02:00
notes_buttons.html fix endline 2022-05-20 13:35:07 +02:00
notifications.html fix endline 2022-05-20 13:35:07 +02:00
page_base.html Part page loading improvements (#3185) 2022-06-17 21:26:28 +10:00
panel.html fix endline 2022-05-20 13:35:07 +02:00
price.html fix endline 2022-05-20 13:35:07 +02:00
qr_button.html fix endline 2022-05-20 13:35:07 +02:00
qr_code.html fix endline 2022-05-20 13:35:07 +02:00
search_form.html Search button fix 2021-11-15 23:06:15 +11:00
search.html fix trailing 2022-05-20 13:20:55 +02:00
sidebar_header.html fix endline 2022-05-20 13:35:07 +02:00
sidebar_item.html fix tags 2022-01-21 02:11:34 +01:00
sidebar_link.html fix tags 2022-01-21 02:11:34 +01:00
sidebar_toggle.html fix tags 2022-01-21 02:11:34 +01:00
skeleton.html Remove custom javascript from auth pages (#3250) 2022-06-25 07:45:50 +10:00
spacer.html fix endline 2022-05-20 13:35:07 +02:00
stats.html fix docs link for "email settings not configured" warning (#3209) 2022-06-17 08:14:40 +10:00
status_codes.html fix trailing 2022-05-20 13:20:55 +02:00
stock_table.html Refactorin' 2022-03-03 21:16:27 +11:00
tel.html fix endline 2022-05-20 13:35:07 +02:00
third_party_js.html Part page loading improvements (#3185) 2022-06-17 21:26:28 +10:00
url.html fix endline 2022-05-20 13:35:07 +02:00
version.html [FR] Add plugin keys, state and version to version info (#3496) 2022-08-08 07:55:55 +10:00
yesnolabel.html fix endline 2022-05-20 13:35:07 +02:00