diff options
| author | RomainLibert <rli@odoo.com> | 2019-07-16 09:28:13 +0000 |
|---|---|---|
| committer | RomainLibert <rli@odoo.com> | 2019-07-16 09:58:17 +0000 |
| commit | c526715110a5e2f67dda2bc56cced4afd46ac316 (patch) | |
| tree | 4b9e026823ecbfda00bb81bc4e3bdadb94f8f78b /addons/l10n_in/data | |
| parent | cd2cdbb5ce6f7179f2442d23d18fb566b35bc72d (diff) | |
[FIX] l10n_*: don't write on country_id in demo
Writing the country_id of the main company in demo data disables demo
data installation if installing multiple l10n, this is caused by a wrong
check of the vat field (base_vat).
Two approaches can be used here:
- Always write on country_id in all l10n demo data
NB: this also implies writing the country_id first in order for the
vat check to be done using the right country code
- Never write on country_id in any l10n demo data
The prefered approach for the moment is to never write on the country_id
of the main company.
This approach is easier to apply as it is a mimimal diff and the first
approach would require deeper changes to the code in order to allow
writing all the information in a single `record` tag in the demo data
closes odoo/odoo#34905
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Diffstat (limited to 'addons/l10n_in/data')
| -rw-r--r-- | addons/l10n_in/data/res_partner_demo.xml | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/l10n_in/data/res_partner_demo.xml b/addons/l10n_in/data/res_partner_demo.xml index f4b436588d3..962919e460c 100644 --- a/addons/l10n_in/data/res_partner_demo.xml +++ b/addons/l10n_in/data/res_partner_demo.xml @@ -2,7 +2,6 @@ <odoo noupdate="1"> <!-- Update main company --> <record id="base.main_company" model="res.company"> - <field name="country_id" ref="base.in"/> <field name="state_id" ref="base.state_in_gj"/> <field name="vat">24BBBFF5679L8ZR</field> </record> |
