From f62facde1d4070d8f5375d02a228aa5fe476d2e8 Mon Sep 17 00:00:00 2001 From: Christophe Simonis <chs@odoo.com> Date: Thu, 4 May 2017 17:58:58 +0200 Subject: [PATCH] [FIX] sale_timesheet: keep name when replacing view part Allow other inherited views to still working. --- addons/sale_timesheet/views/res_config_views.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/sale_timesheet/views/res_config_views.xml b/addons/sale_timesheet/views/res_config_views.xml index 1be92384b484..c5b5ad1ae838 100644 --- a/addons/sale_timesheet/views/res_config_views.xml +++ b/addons/sale_timesheet/views/res_config_views.xml @@ -7,7 +7,7 @@ <field name="inherit_id" ref="hr_timesheet.hr_timesheet_config_settings_view_form"/> <field name="arch" type="xml"> <xpath expr="//div[@name='msg_module_sale_timesheet']" position="replace"> - <div class="content-group" attrs="{'invisible': [('module_sale_timesheet', '=', False)]}"> + <div class="content-group" name="msg_module_sale_timesheet" attrs="{'invisible': [('module_sale_timesheet', '=', False)]}"> <div class="mt16"> <div> <button name="%(sale_timesheet.product_template_action_time_based)d" string="Setup your time-based services" type="action" class="btn-link" icon="fa-arrow-right"/> @@ -27,7 +27,7 @@ <field name="inherit_id" ref="sale.sale_config_settings_view_form_inherit_sale"/> <field name="arch" type="xml"> <xpath expr="//div[@name='msg_module_sale_timesheet']" position="replace"> - <div class="content-group" attrs="{'invisible': [('module_sale_timesheet', '=', False)]}"> + <div class="content-group" name="msg_module_sale_timesheet" attrs="{'invisible': [('module_sale_timesheet', '=', False)]}"> <div class="mt16"> <div> <button name="%(sale_timesheet.product_template_action_time_based)d" string="Setup your time-based services" type="action" class="btn-link" icon="fa-arrow-right"/> @@ -47,7 +47,7 @@ <field name="inherit_id" ref="project.project_config_settings_view_form"/> <field name="arch" type="xml"> <xpath expr="//div[@name='msg_module_sale_timesheet']" position="replace"> - <div class="content-group" attrs="{'invisible': [('module_sale_timesheet', '=', False)]}"> + <div class="content-group" name="msg_module_sale_timesheet" attrs="{'invisible': [('module_sale_timesheet', '=', False)]}"> <div class="mt16"> <div> <button name="%(sale_timesheet.product_template_action_time_based)d" string="Setup your time-based services" type="action" class="btn-link" icon="fa-arrow-right"/> -- GitLab