[FIX] Context argument may be immutable

This commit is contained in:
Stefan Rijnhart
2016-01-26 17:18:35 +01:00
committed by Raphael Collet
parent d0c18d7a85
commit 014a1294b2
+1 -1
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')