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
4928 Zobrazení


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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
říj 23
2332
1
bře 15
11356
0
čvn 24
1121
2
úno 19
7868
0
bře 16
4240