← Back to team overview

savoirfairelinux-openerp team mailing list archive

[Merge] lp:~savoirfairelinux/openupgrade-server/rename_ir_model_data into lp:openupgrade-server

 

Sandy Carter (http://www.savoirfairelinux.com) has proposed merging lp:~savoirfairelinux/openupgrade-server/rename_ir_model_data into lp:openupgrade-server.

Requested reviews:
  OpenUpgrade Committers (openupgrade-committers)

For more details, see:
https://code.launchpad.net/~savoirfairelinux/openupgrade-server/rename_ir_model_data/+merge/231599

When renaming models, we also want to rename them in ir_model_data.

This prevents errors in rename_xmlids such as:

External ID conflict, document_page_procedure already refers to a `wiki.wiki` record, you can't define a `document.page` record with this ID.
-- 
https://code.launchpad.net/~savoirfairelinux/openupgrade-server/rename_ir_model_data/+merge/231599
Your team Savoir Faire Linux is subscribed to branch lp:~savoirfairelinux/openupgrade-server/rename_ir_model_data.
=== modified file 'openerp/addons/base/migrations/7.0.1.3/data.xml'
--- openerp/addons/base/migrations/7.0.1.3/data.xml	2013-07-24 20:22:05 +0000
+++ openerp/addons/base/migrations/7.0.1.3/data.xml	2014-08-20 17:59:04 +0000
@@ -1,6 +1,72 @@
 <?xml version='1.0' encoding='utf-8'?>
 <openerp>
   <data>
+    <record id="DKK" model="res.currency">
+      <field name="name">DKK</field>
+      <field name="symbol">kr</field>
+      <field name="rounding">0.01</field>
+      <field name="accuracy">4</field>
+      <field name="company_id" ref="main_company"/>
+    </record>
+    <record id="rateDKK" model="res.currency.rate">
+      <field name="rate">7.4445</field>
+      <field name="currency_id" ref="DKK"/>
+      <field eval="time.strftime('%Y-01-01')" name="name"/>
+    </record>
+    <record id="INR" model="res.currency">
+      <field name="name">INR</field>
+      <field name="symbol">₹</field>
+      <field name="rounding">0.01</field>
+      <field name="accuracy">4</field>
+      <field name="company_id" ref="main_company"/>
+    </record>
+    <record id="rateINR" model="res.currency.rate">
+      <field name="rate">59.9739</field>
+      <field name="currency_id" ref="INR"/>
+      <field eval="time.strftime('%Y-01-01')" name="name"/>
+    </record>
+    <record id="NOK" model="res.currency">
+      <field name="name">NOK</field>
+      <field name="symbol">kr</field>
+      <field name="rounding">0.01</field>
+      <field name="accuracy">4</field>
+      <field name="company_id" ref="main_company"/>
+    </record>
+    <record id="rateNOK" model="res.currency.rate">
+      <field name="rate">7.8668</field>
+      <field name="currency_id" ref="NOK"/>
+      <field eval="time.strftime('%Y-01-01')" name="name"/>
+    </record>
+    <record id="SEK" model="res.currency">
+      <field name="name">SEK</field>
+      <field name="symbol">kr</field>
+      <field name="rounding">0.01</field>
+      <field name="accuracy">4</field>
+      <field name="company_id" ref="main_company"/>
+    </record>
+    <record id="rateSEK" model="res.currency.rate">
+      <field name="rate">10.3004</field>
+      <field name="currency_id" ref="SEK"/>
+      <field eval="time.strftime('%Y-01-01')" name="name"/>
+    </record>
+    <record id="IDR" model="res.currency">
+      <field name="name">IDR</field>
+      <field name="symbol">Rp</field>
+      <field name="rounding">0.01</field>
+      <field name="accuracy">4</field>
+      <field name="company_id" ref="main_company"/>
+    </record>
+    <record id="rateIDR1" model="res.currency.rate">
+      <field name="rate">14352.00</field>
+      <field name="currency_id" ref="IDR"/>
+      <field eval="time.strftime('2009-01-01')" name="name"/>
+    </record>
+    <record id="rateIDR" model="res.currency.rate">
+      <field name="rate">11796.39</field>
+      <field name="currency_id" ref="IDR"/>
+      <field eval="time.strftime('%Y-01-01')" name="name"/>
+    </record>
+
     <record model="res.country" id="gw"><field name="currency_id" ref="GWP"/>
         </record>
     <record model="res.country" id="gu"><field name="currency_id" ref="USD"/>


Follow ups