跳至内容
菜单
此问题已终结
1 回复
4168 查看


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

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
3
10月 23
1741
1
3月 15
10862
0
6月 24
649
2
2月 19
7252
0
3月 16
3708