From 150fa46cedf47b5aa57643536696e8dea7e7e2e5 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 30 Aug 2021 13:41:33 +0200 Subject: [PATCH] [FIX] contract: fix an obvious crash when self is a multi-recordset --- contract/__manifest__.py | 2 +- contract/models/res_partner.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/contract/__manifest__.py b/contract/__manifest__.py index 79f2f396f..bfa416ec0 100644 --- a/contract/__manifest__.py +++ b/contract/__manifest__.py @@ -11,7 +11,7 @@ { "name": "Recurring - Contracts Management", - "version": "14.0.1.2.1", + "version": "14.0.1.2.2", "category": "Contract Management", "license": "AGPL-3", "author": "Tecnativa, ACSONE SA/NV, Odoo Community Association (OCA)", diff --git a/contract/models/res_partner.py b/contract/models/res_partner.py index 55dcfba5c..a9b471ebe 100644 --- a/contract/models/res_partner.py +++ b/contract/models/res_partner.py @@ -24,7 +24,6 @@ class ResPartner(models.Model): ) def _get_partner_contract_domain(self): - self.ensure_one() return [("partner_id", "child_of", self.ids)] def _compute_contract_count(self):