stock_usability: add simple stock.quant tree view (readonly) without JS
Add a button from stock.location to access simple stock.quant tree view
This commit is contained in:
@@ -65,6 +65,25 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="stock_quant_tree_simple" model="ir.ui.view">
|
||||
<field name="model">stock.quant</field>
|
||||
<field name="priority">100</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree edit="0" create="0" delete="0">
|
||||
<field name="location_id"/>
|
||||
<field name="product_id" />
|
||||
<field name="lot_id" groups="stock.group_production_lot"/>
|
||||
<field name="owner_id" groups="stock.group_tracking_owner"/>
|
||||
<field name="quantity" sum="1"/>
|
||||
<field name="product_uom_id" string="Unit" groups="uom.group_uom"/>
|
||||
<field name="reserved_quantity" string="Reserved" sum="1" optional="show"/>
|
||||
<button type="object" name="action_stock_move_lines_reserved" string="Reservations" attrs="{'invisible': [('reserved_quantity', '=', 0)]}"/>
|
||||
<field name="available_quantity" string="Available" sum="1" optional="show"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!--
|
||||
<record id="view_stock_quant_tree_editable" model="ir.ui.view">
|
||||
<field name="model">stock.quant</field>
|
||||
|
||||
Reference in New Issue
Block a user