[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.
This commit is contained in:
parent
dd84e612d0
commit
ff09135dbb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue