mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] contract: fix an obvious crash when self is a multi-recordset
This commit is contained in:
committed by
Pedro M. Baeza
parent
b4659078b3
commit
150fa46ced
@@ -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)",
|
||||||
|
|||||||
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user