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:
qgigon
2019-12-05 15:33:05 +01:00
parent d2a59fa457
commit f3be3b151c
17 changed files with 862 additions and 0 deletions

View 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