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

Module: Sales Timesheet

Entity: project.project

Compute Method: _compute_partner_id

Inputs Method Outputs
billable_projects = self.filtered('allow_billable')
for project in billable_projects:
            if project.partner_id:
                continue
            if project.allow_billable and project.allow_timesheets and project.pricing_type != 'task_rate':
                sol = project.sale_line_id or project.sale_line_employee_ids.sale_line_id[:1]
                project.partner_id = sol.order_partner_id
super(ProjectProject, self - billable_projects)._compute_partner_id()

Back to entity