summaryrefslogtreecommitdiff
path: root/addons/l10n_ca/account_chart_template_en.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/l10n_ca/account_chart_template_en.xml')
-rw-r--r--addons/l10n_ca/account_chart_template_en.xml22
1 files changed, 12 insertions, 10 deletions
diff --git a/addons/l10n_ca/account_chart_template_en.xml b/addons/l10n_ca/account_chart_template_en.xml
index 64e0632382e..f73bdcec68e 100644
--- a/addons/l10n_ca/account_chart_template_en.xml
+++ b/addons/l10n_ca/account_chart_template_en.xml
@@ -1,5 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
+ <data noupdate="1">
+ <!-- Those properties are in a noupdate section in the stock module -->
+ <!-- No need to create them if they have been deleted -->
+ <record id="stock.property_stock_account_input_categ" model="ir.property" forcecreate="False">
+ <field eval="'account.account,'+str(ref('chart2141_en'))" model="account.account" name="value"/>
+ <field eval="'product.category,'+str(ref('product.product_category_all'))" model="product.category" name="res_id"/>
+ </record>
+ <record id="stock.property_stock_account_output_categ" model="ir.property" forcecreate="False">
+ <field eval="'account.account,'+str(ref('chart1145_en'))" model="account.account" name="value"/>
+ <field eval="'product.category,'+str(ref('product.product_category_all'))" model="product.category" name="res_id"/>
+ </record>
+ </data>
<data>
<!-- Chart template -->
@@ -16,16 +28,6 @@
<field name="currency_id" ref="base.CAD"/>
</record>
- <record id="stock.property_stock_account_input_categ" model="ir.property">
- <field eval="'account.account,'+str(ref('chart2141_en'))" model="account.account" name="value"/>
- <field eval="'product.category,'+str(ref('product.product_category_all'))" model="product.category" name="res_id"/>
- </record>
-
- <record id="stock.property_stock_account_output_categ" model="ir.property">
- <field eval="'account.account,'+str(ref('chart1145_en'))" model="account.account" name="value"/>
- <field eval="'product.category,'+str(ref('product.product_category_all'))" model="product.category" name="res_id"/>
- </record>
-
<record id="property_stock_valuation_account_id_en" model="ir.property">
<field name="name">property_stock_valuation_account_id</field>
<field name="fields_id" search="[('model','=','product.category'),('name','=','property_stock_valuation_account_id')]"/>