[IMP] Inventory button on location

bzr revid: jco@openerp.com-20140422121524-d8lrt55bcyftxqzr
This commit is contained in:
Josse Colpaert 2014-04-22 14:15:24 +02:00
parent a7d4e518ae
commit e170312ef4
1 changed files with 10 additions and 0 deletions

View File

@ -365,10 +365,14 @@
<field name="model">stock.location</field>
<field name="arch" type="xml">
<form string="Stock Location" version="7.0">
<div class="oe_right oe_button_box" name="buttons">
<button string="Inventory" name="%(location_open_quants)d" type="action"/>
</div>
<label for="name" class="oe_edit_only"/>
<h1><field name="name"/></h1>
<label for="location_id" class="oe_edit_only"/>
<h2><field name="location_id"/></h2>
<group>
<group string="Additional Information">
<field name="usage"/>
@ -1773,6 +1777,12 @@
<field name="name">Quants</field>
<field name="res_model">stock.quant</field>
</record>
<record model="ir.actions.act_window" id="location_open_quants">
<field name="context">{'search_default_productgroup': 1}</field>
<field name="domain">[('location_id', 'child_of', active_ids)]</field>
<field name="name">Quants</field>
<field name="res_model">stock.quant</field>
</record>
<!-->
<record model="ir.ui.view" id="product_template_form_view_procurement">
<field name="name">product.template.procurement</field>