InvenTree/InvenTree/users
Oliver 6d3978ea28
Add database model for defining custom units (#5268)
* Add database model for defining custom units

- Database model
- DRF serializer
- API endpoints

* Add validation hook

* Custom check for the 'definition' field

* Add settings page for custom units

- Table of units
- Create / edit / delete buttons

* Allow "unit" field to be empty

- Not actually required for custom unit definition

* Load custom unit definitions into global registry

* Docs: add core concepts page(s)

* Add some back links

* Update docs

* Add unit test for custom unit conversion

* More unit testing

* remove print statements

* Add missing table rule
2023-07-19 06:24:16 +10:00
..
fixtures Adding bulk deletion endpoint for notifications (#3154) 2022-06-08 07:45:30 +10:00
migrations decouble ruleset migration (#5067) 2023-06-19 16:56:26 +10:00
__init__.py Added User API and serializer 2017-04-20 22:40:59 +10:00
admin.py Fix common spelling mistakes (#4956) 2023-06-04 00:04:52 +10:00
api.py Enable regex search (#4566) 2023-04-04 07:05:55 +10:00
apps.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
models.py Add database model for defining custom units (#5268) 2023-07-19 06:24:16 +10:00
serializers.py Move Meta class to top of class definition (#4363) 2023-02-18 18:51:00 +11:00
test_api.py Cleanup / consolidate unit testing code (#4831) 2023-05-17 07:35:26 +10:00
test_migrations.py Cleanup / consolidate unit testing code (#4831) 2023-05-17 07:35:26 +10:00
tests.py Cleanup / consolidate unit testing code (#4831) 2023-05-17 07:35:26 +10:00