summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2018-04-10 14:14:15 +0200
committerGéry Debongnie <ged@odoo.com>2018-04-10 17:41:12 +0200
commit4f6f562c973ce2efd5631ea0e249e75d94cac104 (patch)
treed78e3b26ed2c7f7300b38aec38e1630f3d1e7092 /addons/web/static/src/xml/base.xml
parent270dd268bf0ea7d22c0cbcaf2c4c02b948bf74bd (diff)
[IMP] base: generic Edit View menu item text in debug mode
With this commit, the menu item for editing a view in debug mode has been changed. Instead of "Edit List View", it is now "Edit View: List". That way, the code is shorter, generic, and translatable. Exception to above changes: search view, which is unchanged (it remains "Edit Searchview")
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml9
1 files changed, 1 insertions, 8 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 0cd931553f0..931cb9ccf86 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -264,14 +264,7 @@
<t t-if="can_edit">
<li>
<a href="#" data-action="edit" data-model="ir.ui.view" t-att-data-id="view.fieldsView.view_id">
- <t t-if="view.type == 'form'">Edit Form view</t>
- <t t-elif="view.type == 'list'">Edit List view</t>
- <t t-elif="view.type == 'kanban'">Edit Kanban view</t>
- <t t-elif="view.type == 'graph'">Edit Graph view</t>
- <t t-elif="view.type == 'gantt'">Edit Gantt view</t>
- <t t-elif="view.type == 'pivot'">Edit Pivot view</t>
- <t t-elif="view.type == 'calendar'">Edit Calendar view</t>
- <t t-else="1">Edit view, type: <t t-esc="_.str.capitalize(view.type)"/></t>
+ Edit View: <t t-esc="_.str.capitalize(view.type)"/>
</a>
</li>
<li t-if="searchview and searchview.$el.is(':visible')"><a href="#" data-action="edit" data-model="ir.ui.view" t-att-data-id="action.searchFieldsView.view_id">Edit SearchView</a></li>