mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
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
17 lines
497 B
Python
Executable File
17 lines
497 B
Python
Executable File
# 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
|