2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-04-29 14:24:25 +00:00
Files
InvenTree/InvenTree/templates
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
..
2023-05-02 20:03:52 +10:00
2023-07-15 08:38:39 +10:00
2023-07-17 21:39:53 +10:00
2022-05-20 13:35:07 +02:00
2023-05-02 20:03:52 +10:00
2023-05-02 20:03:52 +10:00
2023-05-02 20:03:52 +10:00
2023-05-02 20:03:52 +10:00
2023-05-02 20:03:52 +10:00
2022-11-05 01:05:54 +11:00
2022-05-20 13:35:07 +02:00
2023-06-20 12:39:18 +10:00
2022-05-20 13:35:07 +02:00
2023-06-20 07:45:35 +10:00
2023-05-02 20:03:52 +10:00
2022-05-20 13:35:07 +02:00
2023-05-02 20:03:52 +10:00
2023-05-02 20:03:52 +10:00
2023-05-02 20:03:52 +10:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2021-11-15 23:06:15 +11:00
2023-03-20 07:21:27 +11:00
2022-05-20 13:35:07 +02:00
2022-01-21 02:11:34 +01:00
2022-01-21 02:11:34 +01:00
2022-01-21 02:11:34 +01:00
2022-05-20 13:35:07 +02:00
2023-06-20 07:45:35 +10:00
2023-05-02 20:03:52 +10:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00