stock_usability: clean-up zero-qty quants when opening quants from stock.location
When accessing stock.move.line from the show reservation on quants, in the form view of stock.move.line, have a link to the picking
This commit is contained in:
@@ -40,6 +40,10 @@
|
||||
string="Reordering Rules"
|
||||
class="oe_stat_button" icon="fa-refresh"/>
|
||||
</div>
|
||||
<button name="%(stock.location_open_quants)d" position="attributes">
|
||||
<attribute name="type">object</attribute>
|
||||
<attribute name="name">action_show_quants</attribute>
|
||||
</button>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
@@ -73,6 +73,17 @@
|
||||
<field name="context">{'search_default_done': 1}</field>
|
||||
</record>
|
||||
|
||||
<record id="view_move_line_form" model="ir.ui.view">
|
||||
<field name="name">stock_usability.stock.move.line.form</field>
|
||||
<field name="model">stock.move.line</field>
|
||||
<field name="inherit_id" ref="stock.view_move_line_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="reference" position="before">
|
||||
<field name="picking_id" invisible="not context.get('stock_move_line_main_view')"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_move_line_tree" model="ir.ui.view">
|
||||
<field name="name">stock_usability.stock.move.line.tree</field>
|
||||
<field name="model">stock.move.line</field>
|
||||
|
||||
Reference in New Issue
Block a user