From ff09135dbb0fac9ab5a7b13f62c5b3bbc3203a8b Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Tue, 28 Apr 2015 11:07:33 +0200 Subject: [PATCH] [FIX] sale_crm: SO created from opportunity in wrong language The onchange partner on the sale.order set the 'note' field as the terms of the company in the partner's language. When the SO is created from an opportunity, the terms are not translated. Call get_salenote method that handles patner's language. --- addons/sale_crm/wizard/crm_make_sale.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/sale_crm/wizard/crm_make_sale.py b/addons/sale_crm/wizard/crm_make_sale.py index 87c996ee8b3..5f0f5187bae 100644 --- a/addons/sale_crm/wizard/crm_make_sale.py +++ b/addons/sale_crm/wizard/crm_make_sale.py @@ -101,6 +101,7 @@ class crm_make_sale(osv.osv_memory): 'date_order': fields.datetime.now(), 'fiscal_position': fpos, 'payment_term':payment_term, + 'note': sale_obj.get_salenote(cr, uid, [case.id], partner.id, context=context), } if partner.id: vals['user_id'] = partner.user_id and partner.user_id.id or uid