InvenTree/InvenTree/common
Oliver 070e2afcea
Project code support (#4636)
* Support image uploads in the "notes" markdown fields

- Implemented using the existing EasyMDE library
- Copy / paste support
- Drag / drop support

* Remove debug message

* Updated API version

* Better UX when saving notes

* Pin PIP version (for testing)

* Bug fixes

- Fix typo
- Use correct serializer type

* Add unit testing

* Update role permissions

* Typo fix

* Update migration file

* Adds a notes mixin class to be used for refactoring

* Refactor existing models with notes to use the new mixin

* Add helper function for finding all model types with a certain mixin

* Refactor barcode plugin to use new method

* Typo fix

* Add daily task to delete old / unused notes

* Add ProjectCode model

(cherry picked from commit 382a0a2fc32c930d46ed3fe0c6d2cae654c2209d)

* Adds IsStaffOrReadyOnly permissions

- Authenticated users get read-only access
- Staff users get read/write access

(cherry picked from commit 53d04da86c4c866fd9c909d147d93844186470b4)

* Adds API endpoints for project codes

(cherry picked from commit 5ae1da23b2eae4e1168bc6fe28a3544dedc4a1b4)

* Add migration file for projectcode model

(cherry picked from commit 5f8717712c65df853ea69907d33e185fd91df7ee)

* Add project code configuration page to the global settings view

* Add 'project code' field to orders

* Add ability to set / edit the project code for various order models

* Add project code info to order list tables

* Add configuration options for project code integration

* Allow orders to be filtered by project code

* Refactor table_filters.js

- Allow orders to be filtered dynamically by project code

* Bump API version

* Fixes

* Add resource mixin for exporting project code in order list

* Add "has_project_code" filter

* javascript fix

* Edit / delete project codes via API

- Also refactor some existing JS

* Move MetadataMixin to InvenTree.models

To prevent circular imports

(cherry picked from commit d23b013881eaffe612dfbfcdfc5dff6d729068c6)

* Fixes for circular imports

* Add metadata for ProjectCode model

* Add Metadata API endpoint for ProjectCode

* Add unit testing for ProjectCode API endpoints
2023-04-20 00:47:07 +10:00
..
fixtures fix endline 2022-05-20 13:35:07 +02:00
migrations Project code support (#4636) 2023-04-20 00:47:07 +10:00
__init__.py startapp common 2019-09-03 08:30:14 +10:00
admin.py Add news reader (#3445) 2022-11-10 12:20:06 +11:00
api.py Project code support (#4636) 2023-04-20 00:47:07 +10:00
apps.py Prevent write of SERVER_RESTART_REQUIRED setting when importing dataset (#3249) 2022-06-24 20:42:55 +10:00
files.py Translation fixes (#4621) 2023-04-18 00:12:14 +10:00
forms.py Remove SettingEditForm (#3964) 2022-11-19 23:10:02 +11:00
models.py Project code support (#4636) 2023-04-20 00:47:07 +10:00
notifications.py [Feature] Add RMA support (#4488) 2023-03-29 10:35:43 +11:00
serializers.py Project code support (#4636) 2023-04-20 00:47:07 +10:00
settings.py Setting caching (#3178) 2022-06-12 10:56:16 +10:00
tasks.py Catch error if notes directory does not exist (#4638) 2023-04-19 22:41:19 +10:00
test_notifications.py Adds callback for creation of an error log (#3136) 2022-06-06 15:21:31 +10:00
test_tasks.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
test_views.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
tests.py Project code support (#4636) 2023-04-20 00:47:07 +10:00
urls.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
views.py Switch to pathlib (#3392) 2022-07-27 10:42:34 +10:00