Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1195 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ก.ค. 25
1965
1
มิ.ย. 25
2290
2
พ.ค. 25
1960
1
พ.ค. 25
1183
1
มี.ค. 25
3139