[IMP] stock_picking_batch: Add button to batch in picking view
While the batch is currently visible on the tree view, there was no current link to a picking's batch while in the form view. Task-2670580 closes odoo/odoo#81533 Related: odoo/upgrade#3205 Related: odoo/enterprise#23484 Signed-off-by: Arnold Moyaux <arm@odoo.com>
This commit is contained in:
@@ -16,6 +16,7 @@ This module adds the batch transfer option in warehouse management
|
||||
'views/stock_picking_type_views.xml',
|
||||
'views/stock_picking_wave_views.xml',
|
||||
'views/stock_move_line_views.xml',
|
||||
'views/stock_picking_views.xml',
|
||||
'data/stock_picking_batch_data.xml',
|
||||
'wizard/stock_picking_to_batch_views.xml',
|
||||
'wizard/stock_add_to_wave_views.xml',
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="stock_picking_form_inherit" model="ir.ui.view">
|
||||
<field name="name">stock.picking.form.inherit</field>
|
||||
<field name="model">stock.picking</field>
|
||||
<field name="inherit_id" ref="stock.view_picking_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<div name="button_box" position="inside">
|
||||
<field name="batch_id" invisible="1"/>
|
||||
<button type="object"
|
||||
name="action_view_batch"
|
||||
class="oe_stat_button"
|
||||
icon="fa-truck"
|
||||
string="Batch"
|
||||
attrs="{'invisible': [('batch_id', '=', False)]}"/>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user