Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1244 Widoki

Is there any way to disable autofill of Expected Arrival? 

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


Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
3
lip 25
2158
1
cze 25
2684
2
maj 25
2145
1
maj 25
1330
1
mar 25
3223