From 997e6045db6c1737827dd5ee32bb4af4fc435d0f Mon Sep 17 00:00:00 2001 From: "ARA (OpenERP)" Date: Mon, 7 Mar 2011 11:42:02 +0530 Subject: [PATCH] [FIX] Account:Product 's unit price changed automatically lp bug: https://launchpad.net/bugs/728378 fixed bzr revid: ara@tinyerp.com-20110307061202-5z2i21cexca8j4ph --- addons/account/invoice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 8de48514387..5f1beca0d32 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -1352,6 +1352,8 @@ class account_invoice_line(osv.osv): currency = self.pool.get('res.currency').browse(cr, uid, currency_id, context=context) if company.currency_id.id != currency.id: + if type in ('in_invoice', 'in_refund'): + res_final['value']['price_unit'] = res.standard_price new_price = res_final['value']['price_unit'] * currency.rate res_final['value']['price_unit'] = new_price