From 03d6e2ae2630b1ef1ab63b4af9486fd513ebd8fb Mon Sep 17 00:00:00 2001 From: Marcel Savegnago Date: Fri, 20 Oct 2023 15:32:06 -0300 Subject: [PATCH] [FIX] contract: fix domain of payment_term_id field --- contract/models/contract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(