Skip to Content
Menú
This question has been flagged
1 Respondre
4926 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
2328
1
de març 15
11355
0
de juny 24
1118
2
de febr. 19
7867
0
de març 16
4239