Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1136 Zobrazení

Is there any way to disable autofill of Expected Arrival? 

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


Avatar
Zrušit
Nejlepší odpověď

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
Zrušit

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

Related Posts Odpovědi Zobrazení Aktivita
3
čvc 25
1893
1
čvn 25
2141
2
kvě 25
1906
1
kvě 25
1156
1
bře 25
3085