parameters: (self, values)
return_statement: return values
docstring: Hook to update record one by one according to the values of a `write` or a `create`.
docstring_summary: Hook to update record one by one according to the values of a `write` or a `create`.
docstring_tokens: Hook to update record one by one according to the values of a write or a create .
function: def _timesheet_postprocess(self, values):
          """ Hook to update record one by one according to the values of a `write` or a `create`. """
          sudo_self = self.sudo()  # this creates only one env for all operation that required sudo() in `_timesheet_postprocess_values`override
          values_to_write = self._timesheet_postprocess_values(values)
          for timesheet in sudo_self:
              if values_to_write[timesheet.id]:
                  timesheet.write(values_to_write[timesheet.id])
          return values
function_tokens: def _timesheet_postprocess ( self , values ) : sudo_self = self . sudo ( ) # this creates only one env for all operation that required sudo() in `_timesheet_postprocess_values`override values_to_write = self . _timesheet_postprocess_values ( values ) for timesheet in sudo_self : if values_to_write [ timesheet . id ] : timesheet . write ( values_to_write [ timesheet . id ] ) return values