Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4980 Prikazi


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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
okt. 23
2373
1
mar. 15
11384
0
jun. 24
1147
2
feb. 19
7901
0
mar. 16
4274