[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:
Guewen Baconnier 2015-04-28 11:07:33 +02:00 committed by Martin Trigaux
parent dd84e612d0
commit ff09135dbb
1 changed files with 1 additions and 0 deletions

View File

@ -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