[FIX] .travis.yml: Update definition

This commit is contained in:
Pedro M. Baeza
2019-10-01 15:26:55 +02:00
committed by hda
parent b260be0550
commit 0ba27c362f
25 changed files with 995 additions and 1043 deletions

View File

@@ -1,2 +1 @@
from . import printing_printer_update_wizard

View File

@@ -8,22 +8,20 @@ import logging
from odoo import models
_logger = logging.getLogger(__name__)
class PrintingPrinterUpdateWizard(models.TransientModel):
_name = 'printing.printer.update.wizard'
_description = 'Printing Printer Update Wizard'
_name = "printing.printer.update.wizard"
_description = "Printing Printer Update Wizard"
def action_ok(self):
self.env['printing.server'].search([]) \
.update_printers(raise_on_error=True)
self.env["printing.server"].search([]).update_printers(raise_on_error=True)
return {
'name': 'Printers',
'view_mode': 'tree,form',
'res_model': 'printing.printer',
'type': 'ir.actions.act_window',
'target': 'current',
"name": "Printers",
"view_mode": "tree,form",
"res_model": "printing.printer",
"type": "ir.actions.act_window",
"target": "current",
}