Skip to content

Commit

Permalink
[IMP] delivery_driver_stock_picking_batch: Show only name in drivers
Browse files Browse the repository at this point in the history
- Show only name in drivers

MT-5232 @moduon
  • Loading branch information
EmilioPascual committed Mar 13, 2024
1 parent d19cd50 commit 8d46ec2
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions delivery_driver_stock_picking_batch/views/stock_picking_batch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
<field name="inherit_id" ref="stock_picking_batch.view_picking_tree_batch" />
<field name="arch" type="xml">
<xpath expr="//field[@name='scheduled_date']" position="after">
<field name="driver_id" optional="hide" />
<field
name="driver_id"
optional="hide"
context="{'show_driver': True}"
options='{"always_reload": True}'
/>
</xpath>
</field>
</record>
Expand All @@ -18,7 +23,12 @@
<field name="inherit_id" ref="stock_picking_batch.stock_picking_batch_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='scheduled_date']" position="after">
<field name="driver_ids" widget="many2many_tags" />
<field
name="driver_ids"
widget="many2many_tags"
context="{'show_driver': True}"
options='{"always_reload": True}'
/>
</xpath>
</field>
</record>
Expand All @@ -28,7 +38,13 @@
<field name="inherit_id" ref="stock_picking_batch.stock_picking_batch_tree" />
<field name="arch" type="xml">
<xpath expr="//field[@name='scheduled_date']" position="after">
<field name="driver_ids" widget="many2many_tags" optional="hide" />
<field
name="driver_ids"
widget="many2many_tags"
optional="hide"
context="{'show_driver': True}"
options='{"always_reload": True}'
/>
</xpath>
</field>
</record>
Expand Down

0 comments on commit 8d46ec2

Please sign in to comment.