[FIX] base_contact: The partner associated with the main company should not have...
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>
Mon, 28 Nov 2011 16:04:32 +0000 (17:04 +0100)
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>
Mon, 28 Nov 2011 16:04:32 +0000 (17:04 +0100)
as it may conflicts with the accounting installing chart wizard. This wizard will indeed try to
install the localization module accordingly to this variable automatically. Thus, in demo data,
everyone would have the belgian chart of account by default, what should be avoided.

bzr revid: qdp-launchpad@openerp.com-20111128160432-ha4pa7w2xli6v5p2

addons/base_contact/base_contact_demo.xml
addons/base_contact/test/base_contact00.yml

index 393c318..35390ca 100644 (file)
             <field eval="&quot;&quot;&quot;Grand-Rosière&quot;&quot;&quot;" name="city"/>
             <field eval="&quot;&quot;&quot;+32.81.73.35.01&quot;&quot;&quot;" name="fax"/>
             <field eval="&quot;&quot;&quot;1367&quot;&quot;&quot;" name="zip"/>
-            <field name="country_id" ref="base.be"/>
+            <!-- The partner associated with the main company should not have a country specified in the demo data,
+                 as it may conflicts with the accounting installing chart wizard. This wizard will indeed try to
+                 install the localization module accordingly to this variable automatically. Thus, in demo data,
+                 everyone would have the belgian chart of account by default, what should be avoided. -->
+            <!-- <field name="country_id" ref="base.be"/> --> 
             <field eval="&quot;&quot;&quot;+32.81.81.37.00&quot;&quot;&quot;" name="phone"/>
             <field eval="&quot;&quot;&quot;Chaussée de Namur, 40&quot;&quot;&quot;" name="street"/>
         </record>
             <field eval="&quot;&quot;&quot;Louvain-La-Neuve&quot;&quot;&quot;" name="city"/>
             <field eval="&quot;&quot;&quot;1348&quot;&quot;&quot;" name="zip"/>
             <field eval="&quot;&quot;&quot;contact&quot;&quot;&quot;" name="type"/>
-            <field name="country_id" ref="base.be"/>
+            <!-- The partner associated with the main company should not have a country specified in the demo data,
+                 as it may conflicts with the accounting installing chart wizard. This wizard will indeed try to
+                 install the localization module accordingly to this variable automatically. Thus, in demo data,
+                 everyone would have the belgian chart of account by default, what should be avoided. -->
+            <!-- <field name="country_id" ref="base.be"/> -->
             <field eval="&quot;&quot;&quot;rue du pré, 115&quot;&quot;&quot;" name="street"/>
             <field eval="1" name="active"/>
         </record>
             <field eval="&quot;&quot;&quot;Charleroi&quot;&quot;&quot;" name="city"/>
             <field eval="&quot;&quot;&quot;6000&quot;&quot;&quot;" name="zip"/>
             <field eval="&quot;&quot;&quot;contact&quot;&quot;&quot;" name="type"/>
-            <field name="country_id" ref="base.be"/>
+            <!-- The partner associated with the main company should not have a country specified in the demo data,
+                 as it may conflicts with the accounting installing chart wizard. This wizard will indeed try to
+                 install the localization module accordingly to this variable automatically. Thus, in demo data,
+                 everyone would have the belgian chart of account by default, what should be avoided. -->
+            <!-- <field name="country_id" ref="base.be"/> -->
             <field eval="&quot;&quot;&quot;Boulevars Tirou, 32&quot;&quot;&quot;" name="street"/>
             <field eval="1" name="active"/>
         </record>
index c6a4ed9..775b563 100644 (file)
@@ -64,7 +64,7 @@
         country_id: base.be
         first_name: Nicolas
         job_ids:
-          - address_id: base.main_address
+          - address_id: base.res_partner_address_1
             function: CTO
             state: current
           - address_id: base.res_partner_address_3000