Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1123 Visualizzazioni

Is there any way to disable autofill of Expected Arrival? 

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


Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona

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

Post correlati Risposte Visualizzazioni Attività
3
lug 25
1889
1
giu 25
2083
2
mag 25
1878
1
mag 25
1141
1
mar 25
3079