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

Module: Sales - Project

Entity: project.project

Compute Method: _compute_has_any_so_to_invoice

Inputs Method Outputs
"""Has any Sale Order whose invoice_status is set as To Invoice"""
if not self.ids:
            self.has_any_so_to_invoice = False
            return
project_to_invoice = self._get_projects_for_invoice_status('to invoice')
project_to_invoice.has_any_so_to_invoice = True
(self - project_to_invoice).has_any_so_to_invoice = False

Back to entity