Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
1133 Vues

Is there any way to disable autofill of Expected Arrival? 

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


Avatar
Ignorer
Meilleure réponse

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
Ignorer

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

Publications associées Réponses Vues Activité
3
juil. 25
1893
1
juin 25
2125
2
mai 25
1904
1
mai 25
1156
1
mars 25
3082