[FIX] Context argument may be immutable

This commit is contained in:
Stefan Rijnhart 2015-11-13 12:26:50 +01:00 committed by Raphael Collet
parent d0c18d7a85
commit 014a1294b2
1 changed files with 1 additions and 1 deletions

View File

@ -732,7 +732,7 @@ class sale_order(osv.osv):
:return: True
"""
context = context or {}
context = dict(context or {})
context['lang'] = self.pool['res.users'].browse(cr, uid, uid).lang
procurement_obj = self.pool.get('procurement.order')
sale_line_obj = self.pool.get('sale.order.line')