Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
4934 Visualizações


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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
3
out. 23
2335
1
mar. 15
11357
0
jun. 24
1125
2
fev. 19
7868
0
mar. 16
4241