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

Module: Project

Entity: project.task

Compute Method: _compute_current_user_same_company_partner

Inputs Method Outputs
commercial_partner_id = self.env.user.partner_id.commercial_partner_id
for task in self:
            task.current_user_same_company_partner = task.partner_id and commercial_partner_id == task.partner_id.commercial_partner_id

Back to entity