Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Task Logs

Entity: res.config.settings

Compute Method: _compute_timesheet_encode_method

Inputs Method Outputs
  • company_id
  • company_id.timesheet_encode_uom_id
uom_day = self.env.ref('uom.product_uom_day', raise_if_not_found=False)
for settings in self:
            settings.timesheet_encode_method = 'days' if settings.company_id.timesheet_encode_uom_id == uom_day else 'hours'

Back to entity