← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Public bug reported:

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.

** Affects: openobject-server
     Importance: Undecided
         Status: New

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





Follow ups

References