Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project code support #4636

Merged
merged 40 commits into from
Apr 19, 2023

Conversation

SchrodingersGat
Copy link
Member

@SchrodingersGat SchrodingersGat commented Apr 19, 2023

Adds support for "project codes" which can be used to track against orders

TODO

- Implemented using the existing EasyMDE library
- Copy / paste support
- Drag / drop support
- Fix typo
- Use correct serializer type
(cherry picked from commit 382a0a2fc32c930d46ed3fe0c6d2cae654c2209d)
- Authenticated users get read-only access
- Staff users get read/write access

(cherry picked from commit 53d04da86c4c866fd9c909d147d93844186470b4)
(cherry picked from commit 5ae1da23b2eae4e1168bc6fe28a3544dedc4a1b4)
(cherry picked from commit 5f8717712c65df853ea69907d33e185fd91df7ee)
- Allow orders to be filtered dynamically by project code
…port

# Conflicts:
#	InvenTree/InvenTree/helpers.py
#	InvenTree/common/api.py
#	InvenTree/common/serializers.py
#	InvenTree/plugin/builtin/barcodes/inventree_barcode.py
@SchrodingersGat SchrodingersGat added the enhancement This is an suggested enhancement or new feature label Apr 19, 2023
@SchrodingersGat SchrodingersGat added order Related to purchase orders / sales orders user interface api Relates to the API labels Apr 19, 2023
@SchrodingersGat SchrodingersGat added this to the 0.12.0 milestone Apr 19, 2023
@matmair
Copy link
Member

matmair commented Apr 19, 2023

@SchrodingersGat we do not have a Project model - could we just name it project and maybe throw in metadata support? Could be valuable for plugins.

@SchrodingersGat
Copy link
Member Author

@matmair took some doing (due to some circular imports) but it now has metadata support

@SchrodingersGat SchrodingersGat merged commit 070e2af into inventree:master Apr 19, 2023
@SchrodingersGat SchrodingersGat deleted the project-code-support branch April 19, 2023 14:47
@matmair
Copy link
Member

matmair commented Apr 19, 2023

@matmair took some doing (due to some circular imports) but it now has metadata support

Very cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Relates to the API enhancement This is an suggested enhancement or new feature order Related to purchase orders / sales orders
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants