pre-commit update: prettier xml indent

pull/2684/head
Stéphane Bidoul 2020-03-02 10:10:44 +01:00 committed by Taras Shabaranskyi
parent 31b3e5d872
commit c54cd68af0
5 changed files with 9 additions and 29 deletions

View File

@ -9,17 +9,14 @@
name="t-attf-href" name="t-attf-href"
>#menu_id=#{app.menuID}&amp;action_id=#{app.actionID}</attribute> >#menu_id=#{app.menuID}&amp;action_id=#{app.actionID}</attribute>
</t> </t>
<!-- App icons should be more than a text --> <!-- App icons should be more than a text -->
<t t-jquery=".o_app &gt; t" t-operation="replace"> <t t-jquery=".o_app &gt; t" t-operation="replace">
<t t-call="web_responsive.AppIcon" /> <t t-call="web_responsive.AppIcon" />
</t> </t>
<!-- Same hotkey as in EE --> <!-- Same hotkey as in EE -->
<t t-jquery=".full" t-operation="attributes"> <t t-jquery=".full" t-operation="attributes">
<attribute name="accesskey">a</attribute> <attribute name="accesskey">a</attribute>
</t> </t>
<!-- Search bar --> <!-- Search bar -->
<t t-jquery="[t-as=app]" t-operation="before"> <t t-jquery="[t-as=app]" t-operation="before">
<div class="search-container form-row align-items-center mb-4 col-12"> <div class="search-container form-row align-items-center mb-4 col-12">
@ -42,7 +39,6 @@
</div> </div>
</t> </t>
</t> </t>
<!-- Separate app icon template, for easier inheritance --> <!-- Separate app icon template, for easier inheritance -->
<t t-name="web_responsive.AppIcon"> <t t-name="web_responsive.AppIcon">
<img <img
@ -53,7 +49,6 @@
<t t-esc="app.name" /> <t t-esc="app.name" />
</span> </span>
</t> </t>
<!-- A search result --> <!-- A search result -->
<t t-name="web_responsive.MenuSearchResults"> <t t-name="web_responsive.MenuSearchResults">
<t t-foreach="results" t-as="result"> <t t-foreach="results" t-as="result">

View File

@ -10,7 +10,6 @@
<attribute name="data-backdrop">false</attribute> <attribute name="data-backdrop">false</attribute>
</t> </t>
</t> </t>
<t t-extend="DocumentViewer.Content"> <t t-extend="DocumentViewer.Content">
<t t-jquery=".o_close_btn" t-operation="replace"> <t t-jquery=".o_close_btn" t-operation="replace">
<div class="o_buttons float-right mr8"> <div class="o_buttons float-right mr8">
@ -20,21 +19,27 @@
tabindex="0" tabindex="0"
aria-label="Maximize" aria-label="Maximize"
title="Maximize" title="Maximize"
><i class="fa fa-window-maximize" /></a> >
<i class="fa fa-window-maximize" />
</a>
<a <a
role="button" role="button"
class="mr8 o_minimize_btn" class="mr8 o_minimize_btn"
tabindex="0" tabindex="0"
aria-label="Minimize" aria-label="Minimize"
title="Minimize" title="Minimize"
><i class="fa fa-window-minimize" /></a> >
<i class="fa fa-window-minimize" />
</a>
<a <a
role="button" role="button"
class="o_close_btn" class="o_close_btn"
tabindex="0" tabindex="0"
aria-label="Close" aria-label="Close"
title="Close" title="Close"
><i class="fa fa-close" /></a> >
<i class="fa fa-close" />
</a>
</div> </div>
</t> </t>
</t> </t>

View File

@ -6,13 +6,11 @@
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
--> -->
<templates id="form_view" xml:space="preserve"> <templates id="form_view" xml:space="preserve">
<!-- Template for buttons that display only the icon in xs --> <!-- Template for buttons that display only the icon in xs -->
<t t-name="web_responsive.icon_button"> <t t-name="web_responsive.icon_button">
<i t-attf-class="fa fa-#{icon}" t-att-title="label" /> <i t-attf-class="fa fa-#{icon}" t-att-title="label" />
<span class="d-none d-sm-inline" t-esc="label" /> <span class="d-none d-sm-inline" t-esc="label" />
</t> </t>
<t t-name="web_responsive.MenuStatusbarButtons"> <t t-name="web_responsive.MenuStatusbarButtons">
<div class="dropdown"> <div class="dropdown">
<button <button
@ -31,18 +29,15 @@
is appended here from JS --> is appended here from JS -->
</div> </div>
</t> </t>
<t t-extend="FormView.buttons"> <t t-extend="FormView.buttons">
<!-- Change "Edit" button hotkey to "E" --> <!-- Change "Edit" button hotkey to "E" -->
<t t-jquery=".o_form_button_edit" t-operation="attributes"> <t t-jquery=".o_form_button_edit" t-operation="attributes">
<attribute name="accesskey">e</attribute> <attribute name="accesskey">e</attribute>
</t> </t>
<!-- Change "Discard" button hotkey to "D" --> <!-- Change "Discard" button hotkey to "D" -->
<t t-jquery=".o_form_button_cancel" t-operation="attributes"> <t t-jquery=".o_form_button_cancel" t-operation="attributes">
<attribute name="accesskey">d</attribute> <attribute name="accesskey">d</attribute>
</t> </t>
<!-- Add responsive icons to buttons --> <!-- Add responsive icons to buttons -->
<t t-jquery=".o_form_button_edit" t-operation="inner"> <t t-jquery=".o_form_button_edit" t-operation="inner">
<t t-call="web_responsive.icon_button"> <t t-call="web_responsive.icon_button">
@ -50,21 +45,18 @@
<t t-set="label">Edit</t> <t t-set="label">Edit</t>
</t> </t>
</t> </t>
<t t-jquery=".o_form_button_create" t-operation="inner"> <t t-jquery=".o_form_button_create" t-operation="inner">
<t t-call="web_responsive.icon_button"> <t t-call="web_responsive.icon_button">
<t t-set="icon" t-value="'plus'" /> <t t-set="icon" t-value="'plus'" />
<t t-set="label">Create</t> <t t-set="label">Create</t>
</t> </t>
</t> </t>
<t t-jquery=".o_form_button_save" t-operation="inner"> <t t-jquery=".o_form_button_save" t-operation="inner">
<t t-call="web_responsive.icon_button"> <t t-call="web_responsive.icon_button">
<t t-set="icon" t-value="'check'" /> <t t-set="icon" t-value="'check'" />
<t t-set="label">Save</t> <t t-set="label">Save</t>
</t> </t>
</t> </t>
<t t-jquery=".o_form_button_cancel" t-operation="inner"> <t t-jquery=".o_form_button_cancel" t-operation="inner">
<t t-call="web_responsive.icon_button"> <t t-call="web_responsive.icon_button">
<t t-set="icon" t-value="'times'" /> <t t-set="icon" t-value="'times'" />
@ -72,7 +64,6 @@
</t> </t>
</t> </t>
</t> </t>
<t t-extend="KanbanView.buttons"> <t t-extend="KanbanView.buttons">
<!-- Add responsive icons to buttons --> <!-- Add responsive icons to buttons -->
<t t-jquery="button" t-operation="inner"> <t t-jquery="button" t-operation="inner">
@ -82,13 +73,11 @@
</t> </t>
</t> </t>
</t> </t>
<t t-extend="ListView.buttons"> <t t-extend="ListView.buttons">
<!-- Change "Discard" button hotkey to "D" --> <!-- Change "Discard" button hotkey to "D" -->
<t t-jquery=".o_list_button_discard" t-operation="attributes"> <t t-jquery=".o_list_button_discard" t-operation="attributes">
<attribute name="accesskey">d</attribute> <attribute name="accesskey">d</attribute>
</t> </t>
<!-- Add responsive icons to buttons --> <!-- Add responsive icons to buttons -->
<t t-jquery=".o_list_button_add" t-operation="inner"> <t t-jquery=".o_list_button_add" t-operation="inner">
<t t-call="web_responsive.icon_button"> <t t-call="web_responsive.icon_button">
@ -96,14 +85,12 @@
<t t-set="label">Create</t> <t t-set="label">Create</t>
</t> </t>
</t> </t>
<t t-jquery=".o_list_button_save" t-operation="inner"> <t t-jquery=".o_list_button_save" t-operation="inner">
<t t-call="web_responsive.icon_button"> <t t-call="web_responsive.icon_button">
<t t-set="icon" t-value="'check'" /> <t t-set="icon" t-value="'check'" />
<t t-set="label">Save</t> <t t-set="label">Save</t>
</t> </t>
</t> </t>
<t t-jquery=".o_list_button_discard" t-operation="inner"> <t t-jquery=".o_list_button_discard" t-operation="inner">
<t t-call="web_responsive.icon_button"> <t t-call="web_responsive.icon_button">
<t t-set="icon" t-value="'times'" /> <t t-set="icon" t-value="'times'" />
@ -111,7 +98,6 @@
</t> </t>
</t> </t>
</t> </t>
<t t-extend="Sidebar"> <t t-extend="Sidebar">
<!-- Replace some common sections by icons in mobile --> <!-- Replace some common sections by icons in mobile -->
<t <t
@ -139,7 +125,6 @@
</t> </t>
</t> </t>
</t> </t>
<t t-extend="mail.Chatter"> <t t-extend="mail.Chatter">
<t t-jquery=".o_chatter_topbar" t-operation="replace"> <t t-jquery=".o_chatter_topbar" t-operation="replace">
<div class="o_chatter_header_container"> <div class="o_chatter_header_container">
@ -149,5 +134,4 @@
</div> </div>
</t> </t>
</t> </t>
</templates> </templates>

View File

@ -5,7 +5,6 @@
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
--> -->
<odoo> <odoo>
<record id="view_users_form_simple_modif" model="ir.ui.view"> <record id="view_users_form_simple_modif" model="ir.ui.view">
<field name="model">res.users</field> <field name="model">res.users</field>
<field name="inherit_id" ref="base.view_users_form_simple_modif" /> <field name="inherit_id" ref="base.view_users_form_simple_modif" />
@ -15,5 +14,4 @@
</xpath> </xpath>
</field> </field>
</record> </record>
</odoo> </odoo>

View File

@ -4,7 +4,6 @@
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
--> -->
<odoo> <odoo>
<template <template
id="webclient_bootstrap" id="webclient_bootstrap"
inherit_id="web.webclient_bootstrap" inherit_id="web.webclient_bootstrap"
@ -18,5 +17,4 @@
/> />
</xpath> </xpath>
</template> </template>
</odoo> </odoo>