mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
Added custom options module for printers by report
corrections for travis tests fix for flake8 errors and travis tests added new sections and rapleced maintainers added USAGE section in readme + bug corection for update of printers changed copyrights updated manifest and fix for case of false ppd
This commit is contained in:
16
printer_custom_options/models/report_xml.py
Executable file
16
printer_custom_options/models/report_xml.py
Executable file
@@ -0,0 +1,16 @@
|
||||
# Copyright 2019 Compassion
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class IrActionsReportXml(models.Model):
|
||||
_inherit = 'ir.actions.report'
|
||||
|
||||
printer_options = fields.Many2many('printer.option.choice',
|
||||
string='Printer Options')
|
||||
|
||||
@api.multi
|
||||
@api.onchange('printing_printer_id')
|
||||
def on_change_printer(self):
|
||||
for report in self:
|
||||
report.printer_options = False
|
||||
Reference in New Issue
Block a user