Skip to content
Snippets Groups Projects
Commit 1812b8f3 authored by Christophe Combelles's avatar Christophe Combelles Committed by Xavier Morel
Browse files

[FIX] sale: copy of possibly None context

closes #10488
parent 2efa359e
No related branches found
No related tags found
No related merge requests found
......@@ -313,7 +313,9 @@ class sale_order(osv.osv):
return {'warning': warning, 'value': value}
def get_salenote(self, cr, uid, ids, partner_id, context=None):
context_lang = context.copy()
if context is None:
context = {}
context_lang = context.copy()
if partner_id:
partner_lang = self.pool.get('res.partner').browse(cr, uid, partner_id, context=context).lang
context_lang.update({'lang': partner_lang})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment