Skip to Content
Menú
This question has been flagged
1 Respondre
5684 Vistes


hello I would like to know through a calculated field to know the difference in days between two dates

for record in self:
record['x_prueba'] = (record.x_eta - record.x_farribo).days

Avatar
Descartar
Best Answer

Hello Danny Gonzalez

Please take below reference for find days between two dates.

for record in self:
record.x_prueba = abs((record.x_eta - record.x_farribo).days)

From this code you will get the days between x_eta and x_farribo.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwar

Avatar
Descartar
Related Posts Respostes Vistes Activitat
3
d’oct. 23
3034
1
de març 15
11948
0
de juny 24
1589
2
de febr. 19
8544
0
de març 16
4809