← Back to team overview

openerp-dev-web team mailing list archive

[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-728378-ara into lp:openobject-addons

 

Ashvin Rathod (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-728378-ara into lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  #728378 Product 's unit price changed automatically.
  https://bugs.launchpad.net/bugs/728378

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-728378-ara/+merge/52371

Hello,

Fix the bug: Product 's unit price changed automatically
https://bugs.launchpad.net/openobject-addons/+bug/728378

Thanks,
ara
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-728378-ara/+merge/52371
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-728378-ara.
=== modified file 'account/invoice.py'
--- account/invoice.py	2011-03-03 17:07:00 +0000
+++ account/invoice.py	2011-03-07 06:14:57 +0000
@@ -1352,6 +1352,8 @@
         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
 


Follow ups