InvenTree/InvenTree/company
Oliver 647c3ade20
Pint unit fix (#5381)
* Accept conversion of fractional values

- e.g. "1/10" is a valid input value
- pint dimensions returns strange results sometimes

* Add option (default) to return value without units

- Handles conversion for "stringish" input values

* Update unit tests

* Fix return from convert_physical_value method

* Update unit tests

* Improved checking for conversion code

* Call to_base_units first

* Conversion depends on whether units are supplied or not

* Updates to unit testing

* Handle conversion of units for supplier parts

- Includes some refactoring
2023-08-02 14:46:28 +10:00
..
fixtures Add Metadata to more models (#4898) 2023-06-02 19:26:20 +10:00
migrations Fix constraint for address model (#5076) 2023-06-20 16:57:20 +10:00
templates/company Fix admin url to point to right model (#5319) 2023-07-23 22:32:14 +10:00
__init__.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
admin.py Add Contacts to admin panel (#5065) 2023-06-19 22:42:02 +10:00
api.py [Feature] Company Addresses (#4732) 2023-06-17 21:55:25 +10:00
apps.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
models.py Pint unit fix (#5381) 2023-08-02 14:46:28 +10:00
serializers.py [Feature] Company Addresses (#4732) 2023-06-17 21:55:25 +10:00
test_api.py [Feature] Company Addresses (#4732) 2023-06-17 21:55:25 +10:00
test_migrations.py [Feature] Company Addresses (#4732) 2023-06-17 21:55:25 +10:00
test_supplier_parts.py Fix common spelling mistakes (#4956) 2023-06-04 00:04:52 +10:00
test_views.py Cleanup / consolidate unit testing code (#4831) 2023-05-17 07:35:26 +10:00
tests.py Fix constraint for address model (#5076) 2023-06-20 16:57:20 +10:00
urls.py [Feature] Add RMA support (#4488) 2023-03-29 10:35:43 +11:00
views.py Client side QR Codes (#4357) 2023-02-17 13:33:36 +11:00