Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4946 Visualizzazioni


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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
ott 23
2346
1
mar 15
11358
0
giu 24
1127
2
feb 19
7871
0
mar 16
4243