[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 Jean-Charles Drubay
parent 5add2e225f
commit a60709e1bd

View File

@@ -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):