跳至內容
選單
此問題已被標幟
570 瀏覽次數

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.

相關帖文 回覆 瀏覽次數 活動
3
2月 25
1818
1
12月 24
2004
2
3月 24
2357
2
3月 24
2884
0
9月 23
1450