Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
791 Widoki

Although we do want to confirm the Sales Order to reserve Inventory, we sometimes have additional Tasks that need to be completed before we release the delivery order:

  • shipping the Delivery Order in stages (for large orders) so we want to split the Delivery Order into several before we release them.
  • often we want to verify payment, or a deposit, or taxes - but don't want the inventory to be sold to others.
  • in some cases we need additional documentation to ship with the products.
  • we need to wait for the customer to tell us when they can accept delivery.

How can we do this in Odoo?




Awatar
Odrzuć
Najlepsza odpowiedź

Since each Delivery Order is related to the Sales Order that created it, you can create a custom Release field on the Sales Order and a matching related one on the Delivery Order, then show these fields to your Users.

 

First, via the Fields Menu in Developer Mode, create a field on the Sales Order to manage releasing the Delivery Order:

 

Add this field to the UI by creating your own Custom View that inherits and overrides the base Odoo View:

<data>

<field name="payment_term_id" position="after">
<field name="x_release" widget="boolean_toggle"/>
</field>

</data>


Now, create the field on the Delivery Order (Transfer)

 


Note that this is a Related Field to sale_id.x_release, so it will grab the value from there, and is Readonly (so it can’t be changed on the Delivery Order).

 

Then we add the x_release field to the Delivery Order Form and List View:

 

<data>

<label for="scheduled_date" position="before">
<field name="x_release" widget="boolean_toggle" invisible="picking_type_code !='outgoing'"/>
</label>

</data>

 Note that we make this field invisible if the transfer is not a delivery order (is a receipt or internal transfer).

 

Finally we add the field to the List View so Users can see which Delivery Orders have been released:


<data>

<field name="name" position="before">
<field name="x_release" widget="boolean_toggle"/>
</field>

</data>

 

User Experience:


Delivery Order List:

 

Delivery Order Form:

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
mar 15
5158
1
wrz 16
6533
1
mar 15
11479
1
mar 15
9046
1
mar 15
4369