mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[FIX] Use explicit kwargs: context=context
This commit is contained in:
committed by
Sylvain GARANCHER
parent
d0eb93e592
commit
9f2c1df8b9
@@ -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()
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user