InvenTree/InvenTree/plugin
Oliver e8d16298a4
Label plugin refactor (#5251)
* Add skeleton for builtin label printing plugin

* Force selection of plugin when printing labels

* Enhance LabelPrintingMixin class

- Add render_to_pdf method
- Add render_to_html method

* Enhance plugin mixin

- Add class attribute to select blocking or non-blocking printing
- Add render_to_png method
- Add default method for printing multiple labels
- Add method for offloding print job

* Simplify print_label background function

- All arguments now handled by specific plugin

* Simplify label printing API

- Simply pass data to the particular plugin
- Check result type
- Return result

* Updated sample plugin

* Working on client side code

* Cleanup

* Update sample plugin

* Add new model type

- LabelOutput model
- Stores generated label file to the database
- Makes available for download

* Update label printing plugin mixin

* Add background task to remove any old label outputs

* Open file if response contains filename

* Remove "default printer" option which does not specify a plugin

* Delete old labels after 5 days

* Remove debug statements

* Update API version

* Changed default behaviour to background printing

* Update label plugin mixin docs

* Provide default printer if none provided (legacy)

* Update unit test

* unit test updates

* Further fixes for unit tests

* unit test updates
2023-07-17 21:39:53 +10:00
..
base Label plugin refactor (#5251) 2023-07-17 21:39:53 +10:00
builtin Label plugin refactor (#5251) 2023-07-17 21:39:53 +10:00
migrations Add metadata to plugin configs (#5019) 2023-06-15 16:17:05 +10:00
mixins Code style improvements (#4683) 2023-04-28 20:49:53 +10:00
mock Improve plugin testing (#3517) 2022-08-16 13:09:48 +10:00
samples Label plugin refactor (#5251) 2023-07-17 21:39:53 +10:00
templatetags Fix common spelling mistakes (#4956) 2023-06-04 00:04:52 +10:00
__init__.py BREAKING (#3283) 2022-07-03 12:32:35 +10:00
admin.py Add metadata to plugin configs (#5019) 2023-06-15 16:17:05 +10:00
api.py Add metadata to plugin configs (#5019) 2023-06-15 16:17:05 +10:00
apps.py [FR] Switch from git to dulwich (#4966) 2023-06-05 19:27:46 +10:00
events.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
helpers.py Get git log fix (#5113) 2023-06-30 13:43:54 +10:00
models.py Add metadata to plugin configs (#5019) 2023-06-15 16:17:05 +10:00
plugin.py Get git log fix (#5113) 2023-06-30 13:43:54 +10:00
registry.py Unit Test Improvements (#5087) 2023-06-23 17:25:59 +10:00
serializers.py Enable and disable plugins via the API (#4964) 2023-06-05 12:19:56 +10:00
template.py Plugin framework updates (#3535) 2022-08-16 16:10:18 +10:00
test_api.py Protected settings fix (#5229) 2023-07-12 16:29:08 +10:00
test_helpers.py Optimisations for editable installs of plugins (#3634) 2022-09-05 13:03:26 +10:00
test_plugin.py Fix common spelling mistakes (#4956) 2023-06-04 00:04:52 +10:00
urls.py [FR] Refactor plugin registry (#4340) 2023-04-19 20:54:42 +10:00
views.py Ensure an error gets logged when a delivery method fails (#3144) 2022-06-07 08:58:00 +10:00