Files
app-odoo/app_stock_putaway/views/product_putaway_views.xml
2019-01-04 03:38:48 +08:00

48 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record model="ir.ui.view" id="app_view_strock_putaway_tree">
<field name="name">Stock Putaway Strategy</field>
<field name="model">product.putaway</field>
<field name="arch" type="xml">
<tree string="Stock Put Away Strategy" create="false">
<field name="name"/>
<field name="location_id"/>
<field name="product_location_ids"/>
<field name="fixed_location_ids"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="app_view_putaway">
<field name="name">app.product.putaway.form</field>
<field name="model">product.putaway</field>
<field name="inherit_id" ref="stock.view_putaway"/>
<field name="arch" type="xml">
<xpath expr="//form" position="attributes">
<attribute name="create">false</attribute>
</xpath>
<xpath expr="//field[@name='name']" position="after">
<field name="location_id" required="1" attrs="{'invisible': [('location_id', '!=', False)]}"/>
</xpath>
<!--<xpath expr="//field[@name='fixed_location_id']" position="attributes">-->
<!--<attribute name="domain">[('id', 'child_of', parent.location_id))]</attribute>-->
<!--</xpath>-->
</field>
</record>
<record id="action_product_putaway" model="ir.actions.act_window">
<field name="name">Stock Putaway Strategy</field>
<field name="res_model">product.putaway</field>
<field name="type">ir.actions.act_window</field>
<field name="view_type">form</field>
<field name="view_mode">list,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Please go to "Configuration->Warehouse Management->Locations" to Create a Stock Putaway Strategy.
</p>
</field>
</record>
<menuitem id="menu_putaway" parent="stock.menu_warehouse_config" action="action_product_putaway" sequence="5"/>
</odoo>