[FIX] web: make 'Edit View: X' translatable
Revision on https://github.com/odoo/odoo/commit/4f6f562c973ce2efd5631ea0e249e75d94cac104 Contrary to what the commit above said, the string was not translatable. This commit fixes the issue by using the property `display_name`, which is the translatable equivalent string of `_.str.capitalize(type)`.
This commit is contained in:
@@ -272,7 +272,7 @@
|
||||
<a role="menuitem" href="#" data-action="fvg" class="dropdown-item">Fields View Get</a>
|
||||
<t t-if="can_edit">
|
||||
<a role="menuitem" href="#" data-action="edit" data-model="ir.ui.view" t-att-data-id="view.fieldsView.view_id" class="dropdown-item">
|
||||
Edit View: <t t-esc="_.str.capitalize(view.type)"/>
|
||||
Edit View: <t t-esc="view.display_name"/>
|
||||
</a>
|
||||
<a t-if="searchview and searchview.$el.is(':visible')" role="menuitem" href="#" data-action="edit" data-model="ir.ui.view" t-att-data-id="action.searchFieldsView.view_id" class="dropdown-item">Edit SearchView</a>
|
||||
</t>
|
||||
|
||||
@@ -52,6 +52,7 @@ QUnit.module('DebugManager', {}, function () {
|
||||
view_id: 1,
|
||||
},
|
||||
type: "list",
|
||||
display_name: "List",
|
||||
}],
|
||||
};
|
||||
var view = {
|
||||
|
||||
Reference in New Issue
Block a user