From 9f2c1df8b91a16c242eafbe687f40a5efcdd7a6d Mon Sep 17 00:00:00 2001 From: Joel Grand-Guillaume Date: Fri, 20 Dec 2013 15:07:09 +0100 Subject: [PATCH] [FIX] Use explicit kwargs: context=context --- base_report_to_printer/printing.py | 2 +- base_report_to_printer/wizard/update_printers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base_report_to_printer/printing.py b/base_report_to_printer/printing.py index 004fcba..22f3fbc 100644 --- a/base_report_to_printer/printing.py +++ b/base_report_to_printer/printing.py @@ -106,7 +106,7 @@ class printing_printer(orm.Model): status = 'unavailable' vals['status'] = status - self.write(cr, uid, [printer.id], vals, context) + self.write(cr, uid, [printer.id], vals, context=context) cr.commit() except: cr.rollback() diff --git a/base_report_to_printer/wizard/update_printers.py b/base_report_to_printer/wizard/update_printers.py index 9b7a240..43ccbd9 100644 --- a/base_report_to_printer/wizard/update_printers.py +++ b/base_report_to_printer/wizard/update_printers.py @@ -44,7 +44,7 @@ class printing_printer_update_wizard(orm.TransientModel): return {} ids = self.pool.get('printing.printer').search(cr, uid, [('system_name','in',printers.keys())], context=context) - for printer in self.pool.get('printing.printer').browse(cr, uid, ids, context): + for printer in self.pool.get('printing.printer').browse(cr, uid, ids, context=context): del printers[printer.system_name] for name in printers: