跳至內容
選單
此問題已被標幟
1 回覆
1155 瀏覽次數

Is there any way to disable autofill of Expected Arrival? 

We want to manually and required to input the dates of this field.


頭像
捨棄
最佳答案

Hello Anton,


To achieve this functionality you can modify purchase order odoo-base method,


//Code in Comment//


Hope this Helps,

If you need any help in customization feel free to contact us.


Thanks & Regards,

Email:  odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari

頭像
捨棄

Code :

def _compute_date_planned(self):
for order in self:
dates_list = order.order_line.filtered(lambda x: not x.display_type and x.date_planned).mapped(
'date_planned')
if (dates_list and not order.date_planned) or not dates_list:
order.date_planned = False

相關帖文 回覆 瀏覽次數 活動
3
7月 25
1907
1
6月 25
2164
2
5月 25
1910
1
5月 25
1158
1
3月 25
3096