InvenTree/InvenTree/stock
Oliver abeb85cbb3
Extend functionality of custom validation plugins (#4391)
* Pass "Part" instance to plugins when calling validate_serial_number

* Pass part instance through when validating IPN

* Improve custom part name validation

- Pass the Part instance through to the plugins
- Validation is performed at the model instance level
- Updates to sample plugin code

* Pass StockItem through when validating batch code

* Pass Part instance through when calling validate_serial_number

* Bug fix

* Update unit tests

* Unit test fixes

* Fixes for unit tests

* More unit test fixes

* More unit tests

* Furrther unit test fixes

* Simplify custom batch code validation

* Further improvements to unit tests

* Further unit test
2023-03-07 22:43:12 +11:00
..
fixtures Extend functionality of custom validation plugins (#4391) 2023-03-07 22:43:12 +11:00
migrations Add migration test (#4398) 2023-02-23 23:12:48 +11:00
templates/stock Js forms updates (#4378) 2023-02-21 07:24:49 +11:00
__init__.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
admin.py Fix rendering of purchase_price for exporting StockItem data (#4434) 2023-03-02 14:50:04 +11:00
api.py Add option to filter stockitems by "external" location status (#4407) 2023-02-25 07:19:41 +11:00
apps.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
filters.py Tree query improvements (#3443) 2022-08-01 13:43:27 +10:00
models.py Extend functionality of custom validation plugins (#4391) 2023-03-07 22:43:12 +11:00
serializers.py Add "external" field to StockLocation (#4377) 2023-02-21 00:42:18 +11:00
test_api.py Extend functionality of custom validation plugins (#4391) 2023-03-07 22:43:12 +11:00
test_migrations.py Add migration test (#4398) 2023-02-23 23:12:48 +11:00
test_views.py [BUG] Fix ownership (#4244) 2023-01-25 09:28:36 +11:00
tests.py Extend functionality of custom validation plugins (#4391) 2023-03-07 22:43:12 +11:00
urls.py Client side QR Codes (#4357) 2023-02-17 13:33:36 +11:00
views.py Client side QR Codes (#4357) 2023-02-17 13:33:36 +11:00