[FIX] contract: fix an obvious crash when self is a multi-recordset

This commit is contained in:
Alexis de Lattre
2021-08-30 13:41:33 +02:00
committed by Pedro M. Baeza
parent b4659078b3
commit 150fa46ced
2 changed files with 1 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
{ {
"name": "Recurring - Contracts Management", "name": "Recurring - Contracts Management",
"version": "14.0.1.2.1", "version": "14.0.1.2.2",
"category": "Contract Management", "category": "Contract Management",
"license": "AGPL-3", "license": "AGPL-3",
"author": "Tecnativa, ACSONE SA/NV, Odoo Community Association (OCA)", "author": "Tecnativa, ACSONE SA/NV, Odoo Community Association (OCA)",

View File

@@ -24,7 +24,6 @@ class ResPartner(models.Model):
) )
def _get_partner_contract_domain(self): def _get_partner_contract_domain(self):
self.ensure_one()
return [("partner_id", "child_of", self.ids)] return [("partner_id", "child_of", self.ids)]
def _compute_contract_count(self): def _compute_contract_count(self):