Skip to content

Commit

Permalink
[FIX] delivery_purchase: Change the position of the carrier to the pi…
Browse files Browse the repository at this point in the history
…cking header

TT45656
  • Loading branch information
victoralmau committed Dec 13, 2023
1 parent b06c59b commit 91bd864
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions delivery_purchase/views/stock_picking_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,25 @@
<field name="name">delivery.stock.picking_withcarrier.form.view</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="delivery.view_picking_withcarrier_out_form" />
<field name="priority">99</field>
<field name="arch" type="xml">
<field name="carrier_id" position="after">
<field name="carrier_id" position="replace" />
<field name="owner_id" position="after">
<field name="purchase_id" invisible="1" />
<field
name="carrier_price"
force_save="1"
attrs="{'invisible': ['|', ('purchase_id', '=', False),('carrier_id', '=', False)]}"
/>
<label for="carrier_id" />
<div class="d-flex">
<field
name="carrier_id"
attrs="{'readonly': [('state', 'in', ('done', 'cancel'))]}"
options="{'no_create': True, 'no_open': True}"
/>
<span class="o_form_label mx-3" />
<field
name="carrier_price"
force_save="1"
attrs="{'invisible': ['|', ('purchase_id', '=', False),('carrier_id', '=', False)]}"
/>
</div>
</field>
</field>
</record>
Expand Down

0 comments on commit 91bd864

Please sign in to comment.