[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:
Quentin (OpenERP) 2011-02-23 15:34:55 +01:00
parent 6c53e0e2ac
commit cfced62547
1 changed files with 1 additions and 1 deletions

View File

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