mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
187707c892
* 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 |
||
---|---|---|
.. | ||
account | ||
allauth_2fa | ||
InvenTree | ||
js | ||
patterns/wizard | ||
plugin | ||
registration | ||
sample | ||
socialaccount/snippets | ||
403_csrf.html | ||
403.html | ||
404.html | ||
500.html | ||
503.html | ||
about.html | ||
admin_button.html | ||
attachment_button.html | ||
attachment_table.html | ||
base.html | ||
clip.html | ||
collapse_rows.html | ||
expand_rows.html | ||
filter_list.html | ||
hover_image.html | ||
mail.html | ||
modal_csrf.html | ||
modal_delete_form.html | ||
modal_form.html | ||
modals.html | ||
navbar.html | ||
notes_buttons.html | ||
notifications.html | ||
page_base.html | ||
panel.html | ||
price.html | ||
qr_button.html | ||
qr_code.html | ||
search_form.html | ||
search.html | ||
sidebar_header.html | ||
sidebar_item.html | ||
sidebar_link.html | ||
sidebar_toggle.html | ||
skeleton.html | ||
spacer.html | ||
stats.html | ||
status_codes.html | ||
stock_table.html | ||
tel.html | ||
third_party_js.html | ||
url.html | ||
version.html | ||
yesnolabel.html |