[FIX] point_of_sale: use the pricelist on the pos order instead of the one from the partner (by default it will be the same)
bzr revid: qdp-launchpad@openerp.com-20110223143455-8vf1ve68gn3t9wrr
This commit is contained in:
parent
6c53e0e2ac
commit
cfced62547
|
@ -648,7 +648,7 @@ class pos_order(osv.osv):
|
|||
'reference': order.name,
|
||||
'partner_id': order.partner_id.id,
|
||||
'comment': order.note or '',
|
||||
'currency_id': order.partner_id.property_product_pricelist.currency_id.id, # considering partner's sale pricelist's currency
|
||||
'currency_id': order.pricelist_id.currency_id.id, # considering partner's sale pricelist's currency
|
||||
}
|
||||
inv.update(inv_ref.onchange_partner_id(cr, uid, [], 'out_invoice', order.partner_id.id)['value'])
|
||||
if not inv.get('account_id', None):
|
||||
|
|
Loading…
Reference in New Issue