[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#136920 Related: odoo/enterprise#48065 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<templates>
|
||||
<t t-name="base_automation.ActionsOne2ManyField" owl="1">
|
||||
<t t-name="base_automation.ActionsOne2ManyField">
|
||||
<div class="d-flex align-items-center" t-ref="root">
|
||||
<t t-if="currentActions.length === 0">
|
||||
<span class="text-muted">no action defined...</span>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<templates>
|
||||
<t t-name="base_automation.TriggerSelectionField" t-inherit="web.SelectionField" t-inherit-mode="primary" owl="1">
|
||||
<t t-name="base_automation.TriggerSelectionField" t-inherit="web.SelectionField" t-inherit-mode="primary">
|
||||
<xpath expr="//t[@t-foreach='options']" position="replace">
|
||||
<t t-foreach="groupedOptions" t-as="group" t-key="group.key">
|
||||
<optgroup t-att-label="group.name">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates>
|
||||
<t t-name="calendar.WeekDays" owl="1">
|
||||
<t t-name="calendar.WeekDays">
|
||||
<div class="o_recurrent_weekdays mt-2 mb-2 d-flex">
|
||||
<t t-foreach="weekdays" t-as="day" t-key="day">
|
||||
<div t-attf-class="o_calendar_week_days_rounded {{data[day] ? 'btn-primary' : 'btn-secondary'}}" t-on-click="() => this.onChange(day)">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates xml:space="preserve">
|
||||
<t t-name="hr_holidays.AccrualLevelsX2ManyField" t-inherit="web.X2ManyField" t-inherit-mode="primary" owl="1">
|
||||
<t t-name="hr_holidays.AccrualLevelsX2ManyField" t-inherit="web.X2ManyField" t-inherit-mode="primary">
|
||||
<xpath expr="//div[hasclass('o_x2m_control_panel')]/.." position="before">
|
||||
<xpath expr="//ListRenderer" position="move"/>
|
||||
<xpath expr="//KanbanRenderer" position="move"/>
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="PartnerDetailsEdit" t-inherit="point_of_sale.PartnerDetailsEdit" t-inherit-mode="extension" owl="1">
|
||||
<t t-name="PartnerDetailsEdit" t-inherit="point_of_sale.PartnerDetailsEdit" t-inherit-mode="extension">
|
||||
<xpath expr="//div[hasclass('partner-details-box')]" position="inside">
|
||||
<t t-if="pos.isArgentineanCompany()">
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<templates xml:space="preserve">
|
||||
|
||||
<t t-name="payment.deleteTokenDialog" owl="1">
|
||||
<t t-name="payment.deleteTokenDialog">
|
||||
<div>
|
||||
<p>Are you sure you want to delete this payment method?</p>
|
||||
<t t-if="linkedRecordsInfo.length > 0">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="point_of_sale.input" owl="1">
|
||||
<t t-name="point_of_sale.input">
|
||||
<div t-attf-class="{{props.class}} d-flex align-items-center">
|
||||
<button t-if="props.isSmall"
|
||||
class="p-3 rounded"
|
||||
@@ -25,7 +25,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
<t t-name="point_of_sale.inputIcon" owl="1">
|
||||
<t t-name="point_of_sale.inputIcon">
|
||||
<i t-if="props.icon.type === 'fa'" t-attf-class="fa {{props.icon.value}} {{margin}}"/>
|
||||
<span t-if="props.icon.type === 'string'" t-attf-class="{{margin}}" t-esc="props.icon.value"/>
|
||||
</t>
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="point_of_sale.ComboConfiguratorPopup" owl="1">
|
||||
<t t-name="point_of_sale.ComboConfiguratorPopup">
|
||||
<div class="popup popup-text popup-med combo-configurator-popup">
|
||||
<header class="modal-header h2" t-esc="props.product.display_name"/>
|
||||
<main class="body">
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates xml:space="preserve">
|
||||
|
||||
<t t-name="portal.InputConfirmationDialog" t-inherit="web.ConfirmationDialog" owl="1">
|
||||
<t t-name="portal.InputConfirmationDialog" t-inherit="web.ConfirmationDialog">
|
||||
<xpath expr="//p[hasclass('text-prewrap')]" position="attributes">
|
||||
<attribute name="class"></attribute>
|
||||
</xpath>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<templates xml:space="preserve">
|
||||
<t t-name="portal.identitycheck" owl="1">
|
||||
<t t-name="portal.identitycheck">
|
||||
<form string="Security Control">
|
||||
<h3><strong>Please enter your password to confirm you own this account</strong></h3>
|
||||
<br/>
|
||||
@@ -10,7 +10,7 @@
|
||||
<a href="/web/reset_password/" class="btn btn-link" role="button">Forgot password?</a>
|
||||
</form>
|
||||
</t>
|
||||
<t t-name="portal.keydescription" owl="1">
|
||||
<t t-name="portal.keydescription">
|
||||
<form string="Key Description">
|
||||
<h3><strong>Name your key</strong></h3>
|
||||
<p>Enter a description of and purpose for the key.</p>
|
||||
@@ -23,7 +23,7 @@
|
||||
</p>
|
||||
</form>
|
||||
</t>
|
||||
<t t-name="portal.keyshow" owl="1">
|
||||
<t t-name="portal.keyshow">
|
||||
<div>
|
||||
<h3><strong>Write down your key</strong></h3>
|
||||
<p>
|
||||
@@ -39,7 +39,7 @@
|
||||
</div>
|
||||
</t>
|
||||
<!-- Popup's view !-->
|
||||
<t t-name="portal.revoke_all_devices_popup_template" owl="1">
|
||||
<t t-name="portal.revoke_all_devices_popup_template">
|
||||
<section>
|
||||
<div>
|
||||
You are about to log out from all devices that currently have access to this user's account.
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="pos_self_order.AttributeSelection" owl="1">
|
||||
<t t-name="pos_self_order.AttributeSelection">
|
||||
<div class="self_order_attribute_selection">
|
||||
<div class="attribute_name py-1 mt-3 mb-4 fw-bold">
|
||||
<t t-if="!state.showResume">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="pos_self_order.CancelPopup" owl="1">
|
||||
<t t-name="pos_self_order.CancelPopup">
|
||||
<div class="self_order_cancel_popup o_dialog" t-att-id="id">
|
||||
<div role="dialog" class="modal d-block" tabindex="-1">
|
||||
<div class="modal-dialog" role="document">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="pos_self_order.ComboSelection" owl="1">
|
||||
<t t-name="pos_self_order.ComboSelection">
|
||||
<div class="self_order_attribute_selection h-100 p-4">
|
||||
<t t-if="!props.comboState.selectedProduct">
|
||||
<div class="attribute_name py-1 mt-3 mb-4 fw-bold">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="pos_self_order.LanguagePopup" owl="1">
|
||||
<t t-name="pos_self_order.LanguagePopup">
|
||||
<div class="self_order_language_popup o_dialog" t-att-id="id">
|
||||
<div role="dialog" class="modal d-block" tabindex="-1">
|
||||
<div class="modal-dialog" role="document">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="pos_self_order.ProductCard" owl="1">
|
||||
<t t-name="pos_self_order.ProductCard">
|
||||
<div class="col-sm-6 col-md-4 col-lg-3 col-xxl-2 p-2">
|
||||
<button class="self_order_product_card btn btn-light m-0 overflow-hidden border fw-bolder"
|
||||
t-on-click="selectProduct"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="pos_self_order.CartPage" owl="1">
|
||||
<t t-name="pos_self_order.CartPage">
|
||||
<div class="order-cart-content d-flex flex-column justify-content-between bg-100">
|
||||
<div class="p-3 position-absolute top-0 m-3">
|
||||
<button class="btn btn-secondary" t-on-click="() => this.router.back()">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="pos_self_order.ClosedPage" owl="1">
|
||||
<t t-name="pos_self_order.ClosedPage">
|
||||
<div class="d-flex gap-3 h-100 w-100 align-items-center justify-content-center text-bg-800">
|
||||
<span class="fs-1">The kiosk is closed</span>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="pos_self_order.ComboPage" owl="1">
|
||||
<t t-name="pos_self_order.ComboPage">
|
||||
<div class="d-flex flex-column w-100 fs-2 text-center border-bottom">
|
||||
<div class="w-100 h-100 d-flex align-items-center justify-content-center bg-primary text-white"><t t-esc="props.product.name" /></div>
|
||||
<div t-if="!state.showResume" class="breadcrumb h-100 w-100 d-flex flex-nowrap p-0 bg-200 overflow-x-auto overflow-y-hidden">
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="pos_self_order.EatingLocationPage" owl="1">
|
||||
<t t-name="pos_self_order.EatingLocationPage">
|
||||
<div class="o_kiosk_eating_location d-flex flex-column align-items-center h-100 bg-100 overflow-hidden">
|
||||
<div class="d-flex align-items-center justify-content-center flex-column w-100 h-100 my-auto px-5 text-center">
|
||||
<h1>Choose your eating location</h1>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="pos_self_order.LandingPage" owl="1">
|
||||
<t t-name="pos_self_order.LandingPage">
|
||||
<div t-if="languages.length > 1" t-on-click="openLanguages" class="self_order_language_selector position-absolute top-0 end-0 m-4 rounded p-4 bg-white shadow-lg">
|
||||
<img class="rounded" t-attf-src="{{currentLanguage.flag_image_url}}" />
|
||||
<span t-esc="currentLanguage.display_name" class="ms-3"></span>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="pos_self_order.PaymentPage" owl="1">
|
||||
<t t-name="pos_self_order.PaymentPage">
|
||||
<div t-if="state.selection" class="h-100 d-flex flex-wrap p-5 gap-5 align-items-center justify-content-center">
|
||||
<div
|
||||
t-foreach="paymentMethods"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="pos_self_order.PaymentSuccessPage" owl="1">
|
||||
<t t-name="pos_self_order.PaymentSuccessPage">
|
||||
<div t-if="this.state.onReload" class="self_order_success_loader position-absolute vh-100 w-100 d-flex justify-content-center align-items-center opacity-50 bg-dark">
|
||||
<div class="page-loader d-flex justify-content-center align-items-center">
|
||||
<div class="spinner-border text-primary" role="status">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="pos_self_order.ProductListPage" owl="1">
|
||||
<t t-name="pos_self_order.ProductListPage">
|
||||
<div class="vh-100 overflow-hidden">
|
||||
<!-- Categories selector -->
|
||||
<nav id="listgroup-categories" class="navbar category-list fixed-top d-flex flex-column flex-wrap gap-3 align-content-start py-2 px-3 shadow-sm bg-view" t-ref="categoryList">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="pos_self_order.ProductPage" owl="1">
|
||||
<t t-name="pos_self_order.ProductPage">
|
||||
<div class="h-100">
|
||||
<div class="d-flex flex-row align-content-flex-start p-3 gap-3 h-25">
|
||||
<img
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="pos_self_order.StandNumberPage" owl="1">
|
||||
<t t-name="pos_self_order.StandNumberPage">
|
||||
<div class="self_order_stand_number">
|
||||
<div class="d-flex flex-column justify-content-between h-100">
|
||||
<div class="h-100 d-flex flex-column justify-content-center align-items-center">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="pos_self_order.selfOrderIndex" owl="1">
|
||||
<t t-name="pos_self_order.selfOrderIndex">
|
||||
<Router pos_config_id="selfOrder.pos_config_id">
|
||||
<t t-set-slot="default" route="`/pos-self/${selfOrder.pos_config_id}`">
|
||||
<LandingPage />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="pos_self_order_sale.CartPage" t-inherit="pos_self_order.CartPage" t-inherit-mode="extension" owl="1">
|
||||
<t t-name="pos_self_order_sale.CartPage" t-inherit="pos_self_order.CartPage" t-inherit-mode="extension">
|
||||
<xpath expr="//div[hasclass('absolute-content-price')]" position="before">
|
||||
<div t-if="optionalProducts.length" class="upsale-content d-flex flex-column justify-content-center gap-3 h-75 border-top bg-100 pt-5 p-4">
|
||||
<h2 class="m-0 fw-bolder">Want to add something ?</h2>
|
||||
|
||||
+1
-1
@@ -111,7 +111,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
</t>
|
||||
<t t-name="saleProductConfigurator.ptav-multi" owl="1">
|
||||
<t t-name="saleProductConfigurator.ptav-multi">
|
||||
<ul t-attf-class="list-inline list-unstyled">
|
||||
<li t-foreach="this.props.attribute_values" t-as="ptav" t-key="ptav.id"
|
||||
class="list-inline-item mb-3">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates xml:space="preserve">
|
||||
<t t-inherit-mode="extension" t-inherit="web.ListRenderer.RecordRow" owl="1">
|
||||
<t t-inherit-mode="extension" t-inherit="web.ListRenderer.RecordRow">
|
||||
<xpath expr="//tr/t[1]" position="inside">
|
||||
<t t-if="column.type === 'opendetailsop'">
|
||||
<td class="o_data_cell cursor-pointer o_list_button">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<templates xml:space="preserve">
|
||||
<t t-name="web.PropertiesGroupByItem" owl="1">
|
||||
<t t-name="web.PropertiesGroupByItem">
|
||||
<AccordionItem
|
||||
class="'o_add_custom_group_menu text-truncate'"
|
||||
description="props.item.description"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates xml:space="preserve">
|
||||
<t t-name="web.DynamicModelFieldSelectorChar" t-inherit="web.CharField" t-inherit-mode="primary" owl="1">
|
||||
<t t-name="web.DynamicModelFieldSelectorChar" t-inherit="web.CharField" t-inherit-mode="primary">
|
||||
<xpath expr="//input" position="attributes">
|
||||
<attribute name="class" add="d-none" separator=" "/>
|
||||
</xpath>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates xml:space="preserve">
|
||||
|
||||
<t t-inherit="web.NavBar" t-inherit-mode="extension" owl="1">
|
||||
<t t-inherit="web.NavBar" t-inherit-mode="extension">
|
||||
<xpath expr="//div[hasclass('o_menu_systray')]" position="attributes">
|
||||
<attribute name="t-attf-class" add="{{shouldDisplayWebsiteSystray ? 'o_website_systray': ''}}" separator=" "/>
|
||||
</xpath>
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates xml:space="preserve">
|
||||
|
||||
<t t-name="website_event_exhibitor.ExhibitorConnectClosedDialog" owl="1">
|
||||
<t t-name="website_event_exhibitor.ExhibitorConnectClosedDialog">
|
||||
<Dialog size="'md'" header="false" footer="false" >
|
||||
<div class="o_wesponsor_js_connect_modal_main container">
|
||||
<div class="row mt-2">
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates xml:space="preserve">
|
||||
|
||||
<t t-name="website_forum.FlagMarkAsOffensiveDialog" owl="1">
|
||||
<t t-name="website_forum.FlagMarkAsOffensiveDialog">
|
||||
<Dialog size="'md'" title="props.title" footer="false" modalRef="modalRef" >
|
||||
<t t-out="props.body"/>
|
||||
</Dialog>
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates xml:space="preserve">
|
||||
|
||||
<t t-name="website_slides.CategoryAddDialog" t-inherit="web.ConfirmationDialog" owl="1">
|
||||
<t t-name="website_slides.CategoryAddDialog" t-inherit="web.ConfirmationDialog">
|
||||
<xpath expr="//p[hasclass('text-prewrap')]" position="replace">
|
||||
<div>
|
||||
<form t-on-submit.prevent="_confirm" action="/slides/category/add" method="POST" id="slide_category_add_form">
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates xml:space="preserve">
|
||||
|
||||
<t t-name="website_slides.SlideUnsubscribeDialog" owl="1">
|
||||
<t t-name="website_slides.SlideUnsubscribeDialog">
|
||||
<Dialog size="'md'" title="state.title">
|
||||
<div>
|
||||
<t t-if="state.mode === 'subscription'">
|
||||
@@ -19,7 +19,7 @@
|
||||
</t>
|
||||
</div>
|
||||
|
||||
<t t-set-slot="footer" owl="1">
|
||||
<t t-set-slot="footer">
|
||||
<t t-if="state.mode === 'subscription'">
|
||||
<button class="btn btn-primary" t-att-disabled="state.buttonDisabled" t-on-click="() => this.onClickSubscriptionSubmit()">Save</button>
|
||||
<button class="btn" t-att-disabled="state.buttonDisabled" t-on-click="() => this.props.close()">Discard</button>
|
||||
|
||||
Reference in New Issue
Block a user