c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #15787
[Bug 716894] Re: Currency rates are inserted with a wrong date
** Patch added: "Diff of changing %Y-01-01 to 2010-01-01"
https://bugs.launchpad.net/bugs/716894/+attachment/1843003/+files/Currency_2010.diff
--
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/716894
Title:
Currency rates are inserted with a wrong date
Status in OpenERP Server:
New
Bug description:
In bin/addons/base/base_data.xml, the currency rates are remarked with
<!-- The Following currency rates are considered as on 1st Jan,2010 against EUR. -->
But the records look like
<record id="rateUSD" model="res.currency.rate">
<field name="rate">1.2834</field>
<field name="currency_id" ref="USD"/>
<field eval="time.strftime('%Y-01-01')" name="name"/>
</record>
The strftime command then sets the year for new databases now to 2011, which is actually wrong as the rates are from 2010.
As long as no newer rates are inserted, they would still be valid if marked correctly as 2010-01-01.
References