[IMP] pre-commit: first run on whole repo
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2014-2020 Akretion (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>
|
||||
|
||||
|
||||
@@ -21,27 +20,63 @@
|
||||
<attribute name="options">{'always_reload': True}</attribute>
|
||||
</field>
|
||||
<button name="action_cancel" type="object" position="attributes">
|
||||
<attribute name="confirm">Are you sure you want to cancel this picking?</attribute>
|
||||
<attribute
|
||||
name="confirm"
|
||||
>Are you sure you want to cancel this picking?</attribute>
|
||||
</button>
|
||||
<!-- STOCK MOVE -->
|
||||
<!-- This sum is useful to check the 'number of items' to transfer... -->
|
||||
<xpath expr="//field[@name='move_ids_without_package']/tree/field[@name='product_uom_qty']" position="attributes">
|
||||
<xpath
|
||||
expr="//field[@name='move_ids_without_package']/tree/field[@name='product_uom_qty']"
|
||||
position="attributes"
|
||||
>
|
||||
<attribute name="sum">1</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='move_ids_without_package']/tree/field[@name='location_id']" position="replace"/>
|
||||
<xpath expr="//field[@name='move_ids_without_package']/tree/field[@name='location_dest_id']" position="replace"/>
|
||||
<xpath expr="//field[@name='move_ids_without_package']/tree/field[@name='name']" position="replace"/>
|
||||
<xpath expr="//field[@name='move_ids_without_package']/tree/field[@name='product_id']" position="after">
|
||||
<field name="product_barcode" optional="hide"/>
|
||||
<field name="name" optional="hide"/>
|
||||
<field name="location_id" groups="stock.group_stock_multi_locations" optional="show" domain="[('id', 'child_of', 'parent.location_id')]" options="{'no_create': True}"/>
|
||||
<field name="location_dest_id" groups="stock.group_stock_multi_locations" optional="show" domain="[('id', 'child_of', 'parent.location_dest_id')]" options="{'no_create': True}"/>
|
||||
<xpath
|
||||
expr="//field[@name='move_ids_without_package']/tree/field[@name='location_id']"
|
||||
position="replace"
|
||||
/>
|
||||
<xpath
|
||||
expr="//field[@name='move_ids_without_package']/tree/field[@name='location_dest_id']"
|
||||
position="replace"
|
||||
/>
|
||||
<xpath
|
||||
expr="//field[@name='move_ids_without_package']/tree/field[@name='name']"
|
||||
position="replace"
|
||||
/>
|
||||
<xpath
|
||||
expr="//field[@name='move_ids_without_package']/tree/field[@name='product_id']"
|
||||
position="after"
|
||||
>
|
||||
<field name="product_barcode" optional="hide" />
|
||||
<field name="name" optional="hide" />
|
||||
<field
|
||||
name="location_id"
|
||||
groups="stock.group_stock_multi_locations"
|
||||
optional="show"
|
||||
domain="[('id', 'child_of', 'parent.location_id')]"
|
||||
options="{'no_create': True}"
|
||||
/>
|
||||
<field
|
||||
name="location_dest_id"
|
||||
groups="stock.group_stock_multi_locations"
|
||||
optional="show"
|
||||
domain="[('id', 'child_of', 'parent.location_dest_id')]"
|
||||
options="{'no_create': True}"
|
||||
/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='move_ids_without_package']/tree/button[@name='action_assign_serial']" position="after">
|
||||
<button type="object" name="button_do_unreserve" string="Unreserve"
|
||||
groups="stock.group_stock_user"
|
||||
states="partially_available,assigned"
|
||||
icon="fa-ban"/>
|
||||
<xpath
|
||||
expr="//field[@name='move_ids_without_package']/tree/button[@name='action_assign_serial']"
|
||||
position="after"
|
||||
>
|
||||
<button
|
||||
type="object"
|
||||
name="button_do_unreserve"
|
||||
string="Unreserve"
|
||||
groups="stock.group_stock_user"
|
||||
states="partially_available,assigned"
|
||||
icon="fa-ban"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
@@ -52,7 +87,7 @@
|
||||
<field name="inherit_id" ref="stock.vpicktree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="date_deadline" position="after">
|
||||
<field name="date_done" optional="show"/>
|
||||
<field name="date_done" optional="show" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
@@ -63,12 +98,19 @@
|
||||
<field name="inherit_id" ref="stock.view_picking_internal_search" />
|
||||
<field name="arch" type="xml">
|
||||
<filter name="picking_type" position="after">
|
||||
<filter string="Partner" name="partner_groupby" context="{'group_by': 'partner_id'}"/>
|
||||
<filter
|
||||
string="Partner"
|
||||
name="partner_groupby"
|
||||
context="{'group_by': 'partner_id'}"
|
||||
/>
|
||||
</filter>
|
||||
<filter name="origin" position="replace"/>
|
||||
<filter name="origin" position="replace" />
|
||||
<filter name="expected_date" position="after">
|
||||
<filter name="date_done_groupby" string="Date Done"
|
||||
context="{'group_by': 'date_done:day'}"/>
|
||||
<filter
|
||||
name="date_done_groupby"
|
||||
string="Date Done"
|
||||
context="{'group_by': 'date_done:day'}"
|
||||
/>
|
||||
</filter>
|
||||
<filter name="expected_date" position="attributes">
|
||||
<!-- group per day -->
|
||||
@@ -82,7 +124,7 @@
|
||||
<field name="model">stock.picking</field>
|
||||
<field name="arch" type="xml">
|
||||
<pivot string="Transfers">
|
||||
<field name="date_done" type="row" interval="month"/>
|
||||
<field name="date_done" type="row" interval="month" />
|
||||
</pivot>
|
||||
</field>
|
||||
</record>
|
||||
@@ -114,11 +156,11 @@
|
||||
<record id="view_picking_type_tree" model="ir.ui.view">
|
||||
<field name="name">usability.stock.picking.type.tree</field>
|
||||
<field name="model">stock.picking.type</field>
|
||||
<field name="inherit_id" ref="stock.view_picking_type_tree"/>
|
||||
<field name="inherit_id" ref="stock.view_picking_type_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="warehouse_id" position="after">
|
||||
<field name="default_location_src_id"/>
|
||||
<field name="default_location_dest_id"/>
|
||||
<field name="default_location_src_id" />
|
||||
<field name="default_location_dest_id" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user