c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #15872
[Bug 716894] Re: Currency rates are inserted with a wrong date
Hm, but it's no demo data, it's base data like the currency definitions themselves.
It's added to every newly created database, even if demo is disabled.
And I'd say, there's nothing dynamic in there, if you simply tell the
system, the courses are vom January 1st THIS YEAR instead of the real
date they were taken from. For me, it's just plain wrong. Think of
someone entering historic data and re-evaluating prices.
Can you please elaborate what you see as dynamic in there, and where the advantages of setting a wrong date are?
--
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:
Invalid
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