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:
@@ -109,7 +109,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()
|
||||
@@ -305,7 +305,7 @@ class report_xml(orm.Model):
|
||||
('user_id', '=', uid),
|
||||
('action', '!=', 'user_default')], context=context)
|
||||
if act_ids:
|
||||
user_action = printing_act_obj.behaviour(cr, uid, act_ids[0], context)
|
||||
user_action = printing_act_obj.behaviour(cr, uid, act_ids[0], context=context)
|
||||
action = user_action['action']
|
||||
if user_action['printer']:
|
||||
printer = user_action['printer']
|
||||
|
||||
@@ -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