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: project.project

Compute Method: _compute_allow_timesheets

View 17.0 View 20.0
Inputs Method Outputs
- without_account = self.filtered(lambda t: not t.analytic_account_id and t._origin)
+ without_account = self.filtered(lambda t: t._origin and not t.account_id)
without_account.update({'allow_timesheets': False})

Back to entity