[FIX] sale: Chatter entries translated in user language

When a delivery order is confirmed, pass the user language to the
procurement creation so the messages in the chatter are now translated
in his language.

opw 627002
This commit is contained in:
Denis Michiels 2015-02-23 11:17:05 +01:00
parent 121b8e6800
commit 8be57ccf0d
1 changed files with 2 additions and 0 deletions

View File

@ -695,6 +695,8 @@ class sale_order(osv.osv):
:return: True
"""
context = dict(context)
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')
for order in self.browse(cr, uid, ids, context=context):