You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.9 KiB
35 lines
1.9 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!--Add the fill and unfill button and product selection option -->
|
|
<record id="view_picking_form" model="ir.ui.view">
|
|
<field name="name">
|
|
stock.picking.view.form.inherit.done.quantity.auto.fill
|
|
</field>
|
|
<field name="model">stock.picking</field>
|
|
<field name="inherit_id" ref="stock.view_picking_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='move_ids_without_package']"
|
|
position="before">
|
|
<field name="select_all_toggle" invisible="1"/>
|
|
<div style="display: flex; flex-direction: row-reverse; margin: 10px;">
|
|
<button name="action_select_all" class="oe_highlight mx-2"
|
|
string="Select All" type="object"
|
|
invisible="select_all_toggle == True or state != 'assigned'"/>
|
|
<button name="action_unselect_all" class="oe_highlight mx-2"
|
|
string="Unselect All" type="object"
|
|
invisible="select_all_toggle == False or state != 'assigned'"/>
|
|
<button name="action_unfill_done_qty" class="oe_highlight"
|
|
string="Unfill Done Qty" type="object"
|
|
invisible="state != 'assigned'"/>
|
|
<button name="action_fill_done_qty"
|
|
class="oe_highlight mx-2" string="Fill Done Qty"
|
|
type="object" invisible="state != 'assigned'"/>
|
|
</div>
|
|
</xpath>
|
|
<xpath expr="//field[@name='move_ids_without_package']/tree/field[@name='product_id']"
|
|
position="before">
|
|
<field name="product_select" invisible="state != 'assigned'"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|