diff options
| author | Pratima Gupta <pgu@odoo.com> | 2020-04-30 13:27:41 +0000 |
|---|---|---|
| committer | Pratima Gupta <pgu@odoo.com> | 2020-05-01 06:10:55 +0000 |
| commit | 0cecb056d4585a13ef7f2f2e7ce6f561276a197a (patch) | |
| tree | 804c9aa00335535470309d7859950d115f175155 | |
| parent | 2eecd986798a6323d9d6a56a901144edf5446f81 (diff) | |
[IMP] l10n_xx: remove function alias added by f8d4bf44
instead, try_loading used directly.
closes odoo/odoo#50382
Task: 2239900
Closes: #50382
Signed-off-by: Josse Colpaert <jco@openerp.com>
6 files changed, 5 insertions, 6 deletions
diff --git a/addons/account/models/chart_template.py b/addons/account/models/chart_template.py index ad8551c15fe..202aa38b291 100644 --- a/addons/account/models/chart_template.py +++ b/addons/account/models/chart_template.py @@ -179,7 +179,6 @@ class AccountChartTemplate(models.Model): for template in self: template.with_context(default_company_id=company.id)._load(15.0, 15.0, company) - try_loading_for_current_company = try_loading def _load(self, sale_tax_rate, purchase_tax_rate, company): """ Installs this chart of accounts on the current company, replacing diff --git a/addons/l10n_at/data/account_chart_template_configure_data.xml b/addons/l10n_at/data/account_chart_template_configure_data.xml index 8c77e612f1a..a4b4b8588d8 100644 --- a/addons/l10n_at/data/account_chart_template_configure_data.xml +++ b/addons/l10n_at/data/account_chart_template_configure_data.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <odoo> <data noupdate="1"> - <function model="account.chart.template" name="try_loading_for_current_company"> + <function model="account.chart.template" name="try_loading"> <value eval="[ref('l10n_at.l10n_at_chart_template')]"/> </function> </data> diff --git a/addons/l10n_dk/data/account_chart_template_configuration_data.xml b/addons/l10n_dk/data/account_chart_template_configuration_data.xml index 1b52cf0bcd9..5403cdcd179 100644 --- a/addons/l10n_dk/data/account_chart_template_configuration_data.xml +++ b/addons/l10n_dk/data/account_chart_template_configuration_data.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <odoo noupdate="1"> - <function model="account.chart.template" name="try_loading_for_current_company"> + <function model="account.chart.template" name="try_loading"> <value eval="[ref('l10n_dk.dk_chart_template')]"/> </function> </odoo> diff --git a/addons/l10n_id/data/account_chart_template_configuration_data.xml b/addons/l10n_id/data/account_chart_template_configuration_data.xml index f1e028d5a79..0a87f30dbea 100644 --- a/addons/l10n_id/data/account_chart_template_configuration_data.xml +++ b/addons/l10n_id/data/account_chart_template_configuration_data.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <odoo noupdate="1"> - <function model="account.chart.template" name="try_loading_for_current_company"> + <function model="account.chart.template" name="try_loading"> <value eval="[ref('l10n_id_chart')]"/> </function> </odoo> diff --git a/addons/l10n_il/data/account_chart_template_configure_data.xml b/addons/l10n_il/data/account_chart_template_configure_data.xml index 83e4b5c41f3..1fccdf8f9ea 100644 --- a/addons/l10n_il/data/account_chart_template_configure_data.xml +++ b/addons/l10n_il/data/account_chart_template_configure_data.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <odoo noupdate="1"> - <function model="account.chart.template" name="try_loading_for_current_company"> + <function model="account.chart.template" name="try_loading"> <value eval="[ref('l10n_il.il_chart_template')]"/> </function> </odoo> diff --git a/addons/l10n_lt/data/account_chart_template_load.xml b/addons/l10n_lt/data/account_chart_template_load.xml index 49005a609f5..7e2c764661e 100644 --- a/addons/l10n_lt/data/account_chart_template_load.xml +++ b/addons/l10n_lt/data/account_chart_template_load.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <odoo noupdate="1"> - <function model="account.chart.template" name="try_loading_for_current_company"> + <function model="account.chart.template" name="try_loading"> <value eval="[ref('l10n_lt.account_chart_template_lithuania')]"/> </function> </odoo> |
