← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 557325] Re: res_currency.compute should check for currency differences before any rate fetch

 

** Branch linked: lp:openobject-addons

** Branch linked: lp:openobject-server

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/557325

Title:
  res_currency.compute should check for currency differences before any rate fetch

Status in OpenObject Server:
  Fix Released

Bug description:
  The code in res_currency.compute can be optimized by checking whether we are working with different currencies or not before fetching any conversion rate from the database. Doing it this way we make easier to work when working with only one currency, without taking care of having the current conversion rates already loaded in the database. Actually I've found this by creating an invoice with EUR-only products and customers for a date before 2010-01-01, which is the date of the oldest EUR conversion rate stored in the database.