← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Hello Marco,

The rate policy is dependent on company policy, So by default we are considering current year in currency rate.
You can manually change and insert the new related rates against the related period.

Thanks.

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