Skip to Content
मेन्यू
This question has been flagged
1 Reply
4925 Views


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
Discard
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
Discard
Related Posts Replies Views Activity
3
अक्तू॰ 23
2327
1
मार्च 15
11355
0
जून 24
1117
2
फ़र॰ 19
7865
0
मार्च 16
4239