[IMP] pre-commit: first run on whole repo

This commit is contained in:
Kevin Khao
2021-11-26 18:54:38 +03:00
parent a04b8980e1
commit 167aefee13
289 changed files with 6020 additions and 4170 deletions

View File

@@ -1,11 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2015-2021 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
@@ -13,13 +11,19 @@
<record id="product_template_form_view" model="ir.ui.view">
<field name="name">usability.pos.product.template</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="point_of_sale.product_template_form_view"/>
<field name="inherit_id" ref="point_of_sale.product_template_form_view" />
<field name="arch" type="xml">
<xpath expr="//group[@name='pos']//field[@name='available_in_pos']" position="replace"/>
<xpath expr="//div[@name='options']//field[@name='sale_ok']/.." position="after">
<xpath
expr="//group[@name='pos']//field[@name='available_in_pos']"
position="replace"
/>
<xpath
expr="//div[@name='options']//field[@name='sale_ok']/.."
position="after"
>
<div name="available_in_pos">
<field name="available_in_pos"/>
<label for="available_in_pos"/>
<field name="available_in_pos" />
<label for="available_in_pos" />
</div>
</xpath>
</field>
@@ -28,13 +32,20 @@
<record id="product_template_search_view" model="ir.ui.view">
<field name="name">pos_usability.product.template.search</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_search_view"/>
<field name="inherit_id" ref="product.product_template_search_view" />
<field name="arch" type="xml">
<field name="categ_id" position="after">
<field name="pos_categ_id" filter_domain="[('pos_categ_id', 'child_of', raw_value)]"/>
<field
name="pos_categ_id"
filter_domain="[('pos_categ_id', 'child_of', raw_value)]"
/>
</field>
<filter name="categ_id" position="after">
<filter name="pos_categ_groupby" string="Point of Sale Category" context="{'group_by': 'pos_categ_id'}"/>
<filter
name="pos_categ_groupby"
string="Point of Sale Category"
context="{'group_by': 'pos_categ_id'}"
/>
</filter>
</field>
</record>