From c526715110a5e2f67dda2bc56cced4afd46ac316 Mon Sep 17 00:00:00 2001 From: RomainLibert Date: Tue, 16 Jul 2019 09:28:13 +0000 Subject: [PATCH] [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) --- addons/l10n_in/data/res_partner_demo.xml | 1 - addons/l10n_it_edi/data/account_invoice_demo.xml | 1 - 2 files changed, 2 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 @@ - 24BBBFF5679L8ZR diff --git a/addons/l10n_it_edi/data/account_invoice_demo.xml b/addons/l10n_it_edi/data/account_invoice_demo.xml index 81cef201c47..06be31a1ba3 100644 --- a/addons/l10n_it_edi/data/account_invoice_demo.xml +++ b/addons/l10n_it_edi/data/account_invoice_demo.xml @@ -3,7 +3,6 @@ - IT00410128888 0123456789987654 RF01