From 17bee9e7232b899a8b594aed0bcdab674bd585af Mon Sep 17 00:00:00 2001 From: "Nasreddin (bon)" Date: Fri, 23 Oct 2020 11:01:20 +0000 Subject: [PATCH] [FIX] account, l10n_ar, l10n_cl: web_studio broken due to dynamic view call Issue - Install "Accounting" & "Studio" modules - Go to "Accounting" and switch studio editor - Go to "Reports" tab and select "Invoices" report - Click on any block to edit. Not possible to edit document. Cause Studio cannot parse dynamic `t-call` and therefore not able to render the corrects hooks to edit the report. The issue has been introduced by this commit: https://github.com/odoo/odoo/commit/5c5710ae8ea045569fd94504f9d8dd5209f7b662 Solution In the corresponding localization report template, add an 'Inheritance Specs' (position="after") that will add a condition where it will retrieve the rigth report name in case localization enabled. opw-2362257 closes odoo/odoo#60660 X-original-commit: ee1580a85c9942e9a98748fa568f9f664c67a320 Signed-off-by: Nicolas Martinelli (nim) Signed-off-by: bon-odoo --- addons/account/views/report_invoice.xml | 6 ++++-- addons/l10n_ar/views/report_invoice.xml | 15 +++++++++++++++ addons/l10n_cl/views/report_invoice.xml | 16 ++++++++++++++++ 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/addons/account/views/report_invoice.xml b/addons/account/views/report_invoice.xml index 45f07cef452..f43de9c3dc4 100644 --- a/addons/account/views/report_invoice.xml +++ b/addons/account/views/report_invoice.xml @@ -213,7 +213,8 @@ - + @@ -223,7 +224,8 @@ - + diff --git a/addons/l10n_ar/views/report_invoice.xml b/addons/l10n_ar/views/report_invoice.xml index e8f3897868c..661c7d4c5ce 100644 --- a/addons/l10n_ar/views/report_invoice.xml +++ b/addons/l10n_ar/views/report_invoice.xml @@ -244,4 +244,19 @@ + + + + + diff --git a/addons/l10n_cl/views/report_invoice.xml b/addons/l10n_cl/views/report_invoice.xml index e0dfade0a02..13df416d002 100644 --- a/addons/l10n_cl/views/report_invoice.xml +++ b/addons/l10n_cl/views/report_invoice.xml @@ -201,4 +201,20 @@ + + + + + +