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

View 19.0
Inputs Method Outputs
  • partner_id
  • partner_id.commercial_partner_id
- 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
  • current_user_same_company_partner

Back to entity