← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 716894] Re: Currency rates are inserted with a wrong date

 

Hello Marco,

This issue is not generic because we can not put demo as a static.It
should be dynamic.

Thanks.

** Changed in: openobject-server
       Status: New => Invalid

-- 
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