<field name="res_model">stock.quant</field>
</record>
+ <act_window
+ context="{'location': active_id, 'search_default_real_stock_available': 1, 'search_default_virtual_stock_available': 1,
+ 'search_default_virtual_stock_negative': 1, 'search_default_real_stock_negative': 1}"
+ id="act_product_location_open"
+ name="Products"
+ res_model="product.product"
+ src_model="stock.location"/>
+
<record id="view_location_form" model="ir.ui.view">
<field name="name">stock.location.form</field>
<field name="model">stock.location</field>
class="oe_stat_button"
icon="fa-building-o" name="%(location_open_quants)d" type="action"
context="{'search_default_internal_loc': 1}"/>
+ <button string="Products"
+ class="oe_stat_button"
+ icon="fa-filter" name="%(act_product_location_open)d" type="action"
+ context="{'location_id': active_id}"
+ />
</div>
<label for="name" class="oe_edit_only"/>
<h1><field name="name"/></h1>