Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1688 Vistas

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?
Avatar
Descartar
Mejor respuesta

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

Avatar
Descartar