콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
1285 화면

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
2223
1
6월 25
2870
2
5월 25
2186
1
5월 25
1356
1
3월 25
3249