[IMP] stock: new tree view and menuitem for stock.location.route

bzr revid: qdp-launchpad@openerp.com-20130709124753-dyczqv8lcegubvgm
This commit is contained in:
Quentin (OpenERP)
2013-07-09 14:47:53 +02:00
parent 9bfe5c950c
commit bf560cfd86
+29 -2
View File
@@ -61,6 +61,17 @@
</group>
</field>
</record>
<record id="stock_location_route_tree" model="ir.ui.view">
<field name="name">stock.location.route.tree</field>
<field name="model">stock.location.route</field>
<field name="arch" type="xml">
<tree string="Routes">
<field name="name"/>
<field name="sequence"/>
</tree>
</field>
</record>
<record id="stock_location_route_form_view" model="ir.ui.view">
<field name="name">stock.location.route.form</field>
@@ -69,10 +80,26 @@
<field name="arch" type="xml">
<form string="Route">
<field name="name"/>
<field name="pull_ids"/>
<field name="push_ids"/>
<field name="sequence"/>
<field name="push_ids" colspan="4"/>
<field name="pull_ids" colspan="4"/>
</form>
</field>
</record>
<record id="action_routes_form" model="ir.actions.act_window">
<field name="name">Logistic Routes</field>
<field name="res_model">stock.location.route</field>
<field name="type">ir.actions.act_window</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="stock_location_route_tree"/>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a logistic route.
</p><p>You can define here the main logistic routes that run through your warehouses and that define the flows of your products. These routes can be assigned to a product, a product category or on a location.</p>
</field>
</record>
<menuitem action="action_routes_form" id="menu_stock_routes" parent="stock.menu_stock_configuration" sequence="11"/>
</data>
</openerp>