Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5150 Vues


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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
3
oct. 23
2483
1
mars 15
11515
0
juin 24
1222
2
févr. 19
8077
0
mars 16
4454