[REF] *: 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.

Part of task~3443861

Part-of: odoo/odoo#130467
This commit is contained in:
Jorge Pinna Puissant
2023-08-11 14:32:30 +02:00
committed by Samuel Degueldre
parent 4b0a951af6
commit e338487028
705 changed files with 1214 additions and 1199 deletions
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-inherit="mail.AvatarCardPopover" t-inherit-mode="extension" owl="1">
<t t-inherit="mail.AvatarCardPopover" t-inherit-mode="extension">
<xpath expr="//div[hasclass('o_avatar_card_buttons')]" position="inside">
<button class="btn btn-secondary btn-sm" t-on-click.stop="onClickViewEmployee"> View profile </button>
</xpath>
</t>
<t t-name="hr.avatarCardUserInfos" owl="1">
<t t-name="hr.avatarCardUserInfos">
<small class="text-muted" t-if="user.job_title" t-esc="user.job_title"/>
<span class="text-muted" t-if="user.department_id" data-tooltip="Department" t-esc="user.department_id[1]"/>
</t>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="hr.BackgroundImage" owl="1">
<t t-name="hr.BackgroundImage">
<img
loading="lazy"
t-att-data-tooltip-template="hasTooltip and tooltipAttributes.template"
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="hr.DepartmentChart" owl="1">
<t t-name="hr.DepartmentChart">
<div class="o_hr_department_chart">
<div class="o_horizontal_separator mb-3 text-uppercase fw-bolder small">Department Organization</div>
<t t-if="state.hierarchy.self">
@@ -28,7 +28,7 @@
</div>
</t>
<t t-name="hr.DepartmentChart.Department" owl="1">
<t t-name="hr.DepartmentChart.Department">
<t t-if="dept">
<div t-attf-class="#{hideTree?'':'o_treeEntry'} mb-0 ps-4">
<div class="d-flex justify-content-between">
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="hr.OpenChat" owl="1">
<t t-name="hr.OpenChat">
<a t-if="props.record.data.user_id"
title="Chat"
icon="fa-comments"
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="hr_homeworking.RadioImageField" owl="1">
<t t-name="hr_homeworking.RadioImageField">
<div role="radiogroup" class="d-flex flex-wrap" t-att-aria-label="string">
<t t-foreach="items" t-as="item" t-key="item[0]">
<t t-if="['office', 'home', 'other'].includes(item[0])">
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="hr.WorkPermitUploadField" t-inherit="web.BinaryField" t-inherit-mode="primary" owl="1">
<t t-name="hr.WorkPermitUploadField" t-inherit="web.BinaryField" t-inherit-mode="primary">
<xpath expr="//label[hasclass('o_select_file_button')]" position="attributes">
<attribute name="class" remove="btn-primary" add="btn-secondary" separator=" " />
</xpath>