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

Hello Everyone,

               I am trying to total the hours posted in hr_timesheet_sheet (timesheet) to each Project and trying to show the same quantity in Project screen (project_project) as consumed hours. The hours calculation is happening and value is updating in the database table.

But when we open the Project in Form View, the consumed hours is resetting to zero and even the database column is resetting to zero.

Please help me to overcome this issue?
形象
丢弃
最佳答案

Hi,

Could you share the your codes?

For your case,  I think you will need to have a Many2one field in the timesheet model and overriding the write and create methods.

Best regards,

Tim

形象
丢弃