From cfced6254773bdeca47f5f1c358aa3c7358cf167 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Wed, 23 Feb 2011 15:34:55 +0100 Subject: [PATCH] [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 --- addons/point_of_sale/point_of_sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index 58e83a7e89e..a2123cb287c 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -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):