diff --git a/contract/models/contract.py b/contract/models/contract.py index ef7992ff9..520684ed6 100644 --- a/contract/models/contract.py +++ b/contract/models/contract.py @@ -88,7 +88,7 @@ class ContractContract(models.Model): string="Payment Terms", index=True, check_company=True, - domain="[('company_id', '=', company_id)]", + domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]", ) invoice_count = fields.Integer(compute="_compute_invoice_count") fiscal_position_id = fields.Many2one(