[REM] *: remove owl="1" from the templates

As all the templates are now imported in the owl app, there is not need
anymore to specify the owl="1" attribute in the templates.

Ref-https://github.com/odoo/odoo/pull/130467

task-3508331

closes odoo/odoo#141383

Related: odoo/enterprise#50344
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
Mahamadasif Ansari
2023-11-08 01:21:59 +00:00
parent bcf64fa885
commit ef5ca752de
9 changed files with 12 additions and 12 deletions
@@ -15,7 +15,7 @@
</Dropdown>
</t>
<t t-name="Dashboard.DashboardIcon" owl="1">
<t t-name="Dashboard.DashboardIcon">
<svg viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg" class="oi-large">
<path d="M4 8C4 5.79086 5.79086 4 8 4H25V21C25 23.2091 23.2091 25 21 25H4V8Z" fill="var(--oi-color, #FC868B)"/>
<path d="M4 35C4 32.7909 5.79086 31 8 31H19V42C19 44.2091 17.2091 46 15 46H4V35Z" fill="var(--oi-color, #F9464C)"/>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<t t-name="hr_attendance.attendance_menu" owl="1">
<t t-name="hr_attendance.attendance_menu">
<t t-if="this.state.isDisplayed">
<Dropdown position="'bottom-end'" beforeOpen.bind="searchReadEmployee" menuClass="`p-2 pb-3`">
<t t-set-slot="toggler">
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="hr_skills.X2ManyFieldDialog" t-inherit="web.X2ManyFieldDialog" t-inherit-mode="primary" owl="1">
<t t-name="hr_skills.X2ManyFieldDialog" t-inherit="web.X2ManyFieldDialog" t-inherit-mode="primary">
<xpath expr="//button[hasclass('o_form_button_save')]" position="replace">
<button class="btn btn-primary o_form_button_save" t-on-click="() => this.save()" data-hotkey="c">Select &amp; Close</button>
</xpath>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="mrp.MoOverviewByproductsBlock" owl="1">
<t t-name="mrp.MoOverviewByproductsBlock">
<t t-if="hasByproducts">
<tr>
<td class="text-start">
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="web.InstallPrompt" owl="1">
<t t-name="web.InstallPrompt">
<Dialog contentClass="'o_install_prompt position-fixed px-2 py-3 m-2'" size="'md'" footer="false">
<t t-set-slot="header">
<div class="d-flex w-100">
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="web.StatusBarField.Dropdown" owl="1">
<t t-name="web.StatusBarField.Dropdown">
<Dropdown toggler="'parent'">
<t t-foreach="items" t-as="item" t-key="item.value">
<DropdownItem
@@ -15,7 +15,7 @@
<t t-esc="label" />
</t>
<t t-name="web.StatusBarField" owl="1">
<t t-name="web.StatusBarField">
<div class="o_statusbar_status" t-ref="root" role="radiogroup">
<button
t-ref="after"
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<t t-name="web_editor.HistoryDialog" owl="1">
<t t-name="web_editor.HistoryDialog">
<Dialog size="size" title="title">
<div class="dialog-container html-history-dialog">
<div class="revision-list d-flex flex-column align-content-stretch">
@@ -44,7 +44,7 @@
</div>
</div>
</div>
<t t-set-slot="footer" owl="1">
<t t-set-slot="footer">
<button class="btn btn-primary" t-on-click="_onRestoreRevisionClick">Restore history</button>
<button class="btn btn-secondary" t-on-click="props.close">Cancel</button>
</t>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<templates>
<t t-name="web_hierarchy.HierarchyButtons" owl="1">
<t t-name="web_hierarchy.HierarchyButtons">
<div class="d-flex o_grid_buttons">
<div class="me-2" t-if="props.archInfo.activeActions.create and (!props.archInfo.createInline or displayNoContent)">
<button class="btn btn-primary o_hierarchy_button_add"
@@ -11,7 +11,7 @@
</div>
</div>
</t>
<t t-name="web_hierarchy.HierarchyView" owl="1">
<t t-name="web_hierarchy.HierarchyView">
<div t-attf-class="o_hierarchy_view {{ isMobile ? 'o_action_delegate_scroll' : '' }} {{ props.className }}" t-ref="root">
<Layout className="(model.useSampleModel ? 'o_view_sample_data' : '') + ' d-flex'" display="props.display">
<t t-set-slot="control-panel-additional-actions">
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<templates>
<t t-name="web_hierarchy.HierarchyRenderer" owl="1">
<t t-name="web_hierarchy.HierarchyRenderer">
<div class="o_hierarchy_renderer w-100 d-flex justify-content-center" t-ref="renderer">
<div class="o_hierarchy_container d-flex flex-column px-3 pt-4 mw-xl-75">
<t t-foreach="rows" t-as="row" t-key="row_index">