Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1140 Lượt xem

Is there any way to disable autofill of Expected Arrival? 

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 7 25
1893
1
thg 6 25
2148
2
thg 5 25
1908
1
thg 5 25
1156
1
thg 3 25
3085