Port stock_usability to v10
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
Copyright (C) 2014-2016 Akretion (http://www.akretion.com/)
|
||||
@author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
The licence is in the file __openerp__.py
|
||||
© 2014-2016 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).
|
||||
-->
|
||||
|
||||
<openerp>
|
||||
<data>
|
||||
<odoo>
|
||||
|
||||
|
||||
<record id="view_picking_form" model="ir.ui.view">
|
||||
@@ -18,8 +16,8 @@
|
||||
<field name="backorder_id" position="attributes">
|
||||
<attribute name="attrs">{}</attribute>
|
||||
</field>
|
||||
<field name="date_done" position="attributes">
|
||||
<attribute name="groups"></attribute>
|
||||
<field name="min_date" position="after">
|
||||
<field name="date_done" states="done"/>
|
||||
</field>
|
||||
<!-- Maybe it's usefull to always display stock pack operations...
|
||||
or maybe only for debugging... I haven't decided yet !
|
||||
@@ -38,15 +36,15 @@
|
||||
<group expand="0" position="inside">
|
||||
<filter string="Partner" context="{'group_by': 'partner_id'}"/>
|
||||
</group>
|
||||
<filter string="Origin" position="replace"/>
|
||||
<filter string="Expected Date" position="attributes">
|
||||
<filter context="{'group_by':'origin'}" position="replace"/>
|
||||
<filter context="{'group_by':'min_date'}" position="after">
|
||||
<filter name="date_done" string="Date Done"
|
||||
context="{'group_by': 'date_done:day'}"/>
|
||||
</filter>
|
||||
<filter context="{'group_by':'min_date'}" position="attributes">
|
||||
<!-- group per day -->
|
||||
<attribute name="context">"{'group_by': 'min_date:day'}"</attribute>
|
||||
</filter>
|
||||
<filter string="Expected Date" position="after">
|
||||
<filter name="date_done" string="Date Done"
|
||||
context="{'group_by':'date_done:day'}"/>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -98,11 +96,14 @@
|
||||
<field name="model">stock.move</field>
|
||||
<field name="inherit_id" ref="stock.view_move_form" />
|
||||
<field name="arch" type="xml">
|
||||
<!-- There are no button any more on that view...
|
||||
so probably not a good idea to add one
|
||||
<button name="force_assign" position="after">
|
||||
<button type="object" name="do_unreserve" string="Unreserve"
|
||||
groups="stock.group_stock_user"
|
||||
states="confirmed,assigned"/>
|
||||
</button>
|
||||
-->
|
||||
<group name="moved_quants_grp" position="after">
|
||||
<notebook colspan="2">
|
||||
<page string="Notes" name="notes">
|
||||
@@ -128,6 +129,7 @@
|
||||
<field name="model">stock.move</field>
|
||||
<field name="inherit_id" ref="stock.view_move_picking_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="group_id" position="replace"/> <!-- in stock, this field has invisible="1" re-add it below as visible -->
|
||||
<group name="moved_quants_grp" position="after">
|
||||
<notebook colspan="2">
|
||||
<page string="Notes" name="notes">
|
||||
@@ -148,6 +150,8 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- This view has changed a lot ; most fields are invisible, so it's probably not used a lot -->
|
||||
<!--
|
||||
<record id="view_move_picking_tree" model="ir.ui.view">
|
||||
<field name="name">stock_usability.src_location.in.picking.form</field>
|
||||
<field name="model">stock.move</field>
|
||||
@@ -163,21 +167,22 @@
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
-->
|
||||
|
||||
<record id="view_warehouse" model="ir.ui.view">
|
||||
<field name="name">stock.usability.warehouse.form</field>
|
||||
<field name="model">stock.warehouse</field>
|
||||
<field name="inherit_id" ref="stock.view_warehouse" />
|
||||
<field name="arch" type="xml">
|
||||
<group string="Picking Types" position="after">
|
||||
<xpath expr="//field[@name='out_type_id']/.." position="after">
|
||||
<group name="routes" string="Routes">
|
||||
<field name="route_ids" widget="many2many_tags"/>
|
||||
<field name="route_ids" widget="many2many_tags"/>
|
||||
<field name="crossdock_route_id"/>
|
||||
<field name="reception_route_id"/>
|
||||
<field name="delivery_route_id"/>
|
||||
<field name="resupply_route_ids"/>
|
||||
</group>
|
||||
</group>
|
||||
</xpath>
|
||||
<field name="wh_input_stock_loc_id" position="before">
|
||||
<field name="lot_stock_id" readonly="1" required="0"/>
|
||||
<field name="view_location_id" groups="base.group_no_one"
|
||||
@@ -191,36 +196,12 @@
|
||||
<field name="model">stock.location</field>
|
||||
<field name="inherit_id" ref="stock.view_location_search" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="location_id" position="after">
|
||||
<filter name="inactive" position="after">
|
||||
<group string="Group By" name="groupby">
|
||||
<filter name="usage" string="Location Type"
|
||||
context="{'group_by': 'usage'}"/>
|
||||
</group>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="stock_location_path_action" model="ir.actions.act_window">
|
||||
<field name="name">Push Rules</field>
|
||||
<field name="res_model">stock.location.path</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="stock_location_path_menu" action="stock_location_path_action"
|
||||
sequence="10" parent="stock.menu_stock_configuration"/>
|
||||
|
||||
<!-- Display total qty in Transfer wizard
|
||||
Usefull because some delivery order from suppliers contains the "total number of items"
|
||||
So the Odoo user can easily check that he doesn't make mistakes
|
||||
in the quantities for his reception -->
|
||||
<record id="view_stock_enter_transfer_details" model="ir.ui.view">
|
||||
<field name="name">stock.usability.transfer_details.form</field>
|
||||
<field name="model">stock.transfer_details</field>
|
||||
<field name="inherit_id" ref="stock.view_stock_enter_transfer_details"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="quantity" position="attributes">
|
||||
<attribute name="sum">Total</attribute>
|
||||
</field>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -235,39 +216,10 @@ in the quantities for his reception -->
|
||||
<field name="qty" position="attributes">
|
||||
<attribute name="sum">Total Qty</attribute>
|
||||
</field>
|
||||
<field name="qty" position="after">
|
||||
<field name="uom_id"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_stock_quant_form" model="ir.ui.view">
|
||||
<field name="name">stock.usability.quant.form</field>
|
||||
<field name="model">stock.quant</field>
|
||||
<field name="inherit_id" ref="stock.view_stock_quant_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="qty" position="replace">
|
||||
<label for="qty"/>
|
||||
<div>
|
||||
<field name="qty" class="oe_inline"/>
|
||||
<field name="uom_id" class="oe_inline"/>
|
||||
</div>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="view_move_tree_receipt_picking" model="ir.ui.view">
|
||||
<field name="name">stock.usability.stock.move.tree2</field>
|
||||
<field name="model">stock.move</field>
|
||||
<field name="inherit_id" ref="stock.view_move_tree_receipt_picking"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="date_expected" position="attributes">
|
||||
<attribute name="invisible">0</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!--
|
||||
<record id="view_template_property_form" model="ir.ui.view">
|
||||
<field name="name">stock.usability.product.template.form</field>
|
||||
<field name="model">product.template</field>
|
||||
@@ -278,24 +230,12 @@ in the quantities for his reception -->
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
-->
|
||||
|
||||
<!-- more detailed stock.move tree view when using the button from product form -->
|
||||
<!-- TODO TEST
|
||||
<record id="stock.act_product_stock_move_open" model="ir.actions.act_window">
|
||||
<field name="view_id" ref="stock.view_move_tree"/>
|
||||
</record>
|
||||
</record> -->
|
||||
|
||||
<record id="procurement_group_form_view" model="ir.ui.view">
|
||||
<field name="name">stock_usability.procurement.group.form</field>
|
||||
<field name="model">procurement.group</field>
|
||||
<field name="inherit_id" ref="procurement.procurement_group_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='move_type']/.." position="after">
|
||||
<group name="picking" string="Pickings">
|
||||
<field name="picking_ids" nolabel="1"/>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user