Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
567 Переглядів

When I create a new quotation or sales order, I want to set the delivery date automatically to the next weekday based on another field named "x_studio_delivery_day". I'm using Odoo Online, I went into Studio and into "Delivery Date" properties. I see the option to "Compute" in "Advanced Properties", but not able to figure out the code to put in there. Any help?

Аватар
Відмінити

Please explain more about this new field you added from studio - x_studio_delivery_day. What kind of data this field holds. After that I will be able to give you the code. 

Автор

Hi Abhay,

x_studio_delivery_day is a field in the model x_delivery_route in Inventory module. It is a selection of values "Monday, Tuesday, Wednesday, Thursday, Friday". 

I have connected this related field into the sales.order, so the value shows up in the sales order.

Related Posts Відповіді Переглядів Дія
3
лют. 25
1812
1
груд. 24
2002
2
бер. 24
2356
2
бер. 24
2880
0
вер. 23
1448