Report to printer - Custom Printer Options
printer_custom_options · OCA/report-print-send
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 81 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 11.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.04 MB
Module directory on disk
Code analysis
3 migration notes
4 models
2 views
0 HTTP endpoints
Migration considerations
IrActionsReportXml— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourcePrinterOptionChoice— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourcePrintingPrinter— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (2 methods) migration-api-multi-one · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
- Python dependencies
- cups
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
act_report_xml_view |
ir.actions.report.printing_options | ir.actions.report | Inherits base.act_report_xml_view | |
printing_printer_view_form |
printing.printer.form | printing.printer | form | Inherits base_report_to_printer.printing_printer_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (1)
-
printer_optionsMany2many → printer.option.choicestring='Printer Options' args: 'printer.option.choice'
-
on_change_printer(self)@api.multi@api.onchange('printing_printer_id')
New fields (2)
-
option_keyCharreadonly=Truerequired=True -
printer_idMany2one → printing.printercomodel_name='printing.printer'ondelete='cascade'readonly=Truerequired=Truestring='Printer'
No public methods.
New fields (4)
-
composite_keyCharcompute='_compute_composite_key'store=True -
option_keyCharreadonly=Truerequired=True -
option_valueCharreadonly=Truerequired=True -
printer_idMany2one → printing.printercomodel_name='printing.printer'ondelete='cascade'readonly=Truerequired=Truestring='Printer'
-
build_composite_key(self, option_key, option_value)@api.model
New fields (2)
-
printer_option_choicesOne2many → printer.option.choicecomodel_name='printer.option.choice'inverse_name='printer_id'readonly=Truestring='Option Choices' -
printer_optionsOne2many → printer.optioncomodel_name='printer.option'inverse_name='printer_id'readonly=True
-
discover_values_of_option(self, ppd, current_option_keys, option_key)Returns all new values for one printer option category. Most probably it will insert all option values the first time we sync with CUPS and then return an empty list. -
print_options(self, report=None, **print_opts)@api.multi