summaryrefslogtreecommitdiff
path: root/addons/l10n_uy
diff options
context:
space:
mode:
authorJosse Colpaert <jco@odoo.com>2019-08-13 19:13:11 +0000
committerJosse Colpaert <jco@odoo.com>2019-08-14 08:42:27 +0000
commitf8d4bf4499e1e21cbce853c3a5f78fe5574abe6c (patch)
treebf129e1c6dbaf965aeedd3409b702903c1db4a5c /addons/l10n_uy
parent275dcfa41285e03b8ce6611277867101bebc6af3 (diff)
[IMP] account, l10n_xx: change CoA loading methods
Before, we only had a public method that installed the CoA for the current active company. With the multi-company changes, it was not possible anymore to install a module with a demo company and then have the CoA installed in that demo company correctly. We changed that public method to be able to put an extra optional parameter and shortened its name to try_loading instead of try_loading_for_current_company. The method that it calls when there is no chart installed is made private and renamed to _load. closes odoo/odoo#35703 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Diffstat (limited to 'addons/l10n_uy')
-rw-r--r--addons/l10n_uy/data/account_chart_template_data.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/l10n_uy/data/account_chart_template_data.xml b/addons/l10n_uy/data/account_chart_template_data.xml
index 4e1c02a6474..9034bbd8669 100644
--- a/addons/l10n_uy/data/account_chart_template_data.xml
+++ b/addons/l10n_uy/data/account_chart_template_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_uy.uy_chart_template')]"/>
</function>
</data>