summaryrefslogtreecommitdiff
path: root/odoo
diff options
context:
space:
mode:
authorNisha patel <nit@odoo.com>2020-03-27 10:53:38 +0000
committerBarad Mahendra <mba@openerp.com>2020-03-30 11:52:32 +0000
commit433246a69ae28d9746fe7b69001643a4fad5bac2 (patch)
tree14dee266ed783f9863851a5f63fd5e63ce917f34 /odoo
parentf32067cb9591a6373cca2b0b5b712b9409b9ce76 (diff)
[IMP] base: Display warnning to user while view modification
Purpose of the task is, Warn the user that we do not recommend editing the architecture of standard views because During migration if the client does standard views modification then during migration all views will be updated according to the new odoo version and all customization will be lost. So during upgraded database testing issues will come about that views or client will post issues and ask about where our customization is gone. So in this commit, we added alert message on edit of view like: 'Be aware that editing the architecture of a standard view is not advised, since the changes will be overwritten during future module updates. We recommend applying modifications to standard views through inherited views or customization with Odoo Studio.' closes odoo/odoo#48492 Taskid: 2219956 Closes: #48492 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'odoo')
-rw-r--r--odoo/addons/base/views/ir_ui_view_views.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/odoo/addons/base/views/ir_ui_view_views.xml b/odoo/addons/base/views/ir_ui_view_views.xml
index b2881334979..352c58be17b 100644
--- a/odoo/addons/base/views/ir_ui_view_views.xml
+++ b/odoo/addons/base/views/ir_ui_view_views.xml
@@ -22,6 +22,10 @@
<field name="xml_id"/>
</group>
</group>
+ <div class="oe_edit_only alert alert-info" role="alert">
+ Be aware that editing the architecture of a standard view is not advised, since the changes will be overwritten during future module updates.<br/>
+ We recommend applying modifications to standard views through inherited views or customization with Odoo Studio.
+ </div>
<notebook>
<page string="Architecture" name="architecture">
<button type="object" name="open_translations"