Update test suite

Fix bug in account_banking_mandate when a res.partner.bank is not attached to a particular company (company_id is NOT required on res.partner.bank)
This commit is contained in:
Alexis de Lattre
2021-11-02 18:35:42 +01:00
committed by Reyes4711
parent 03ed2e8534
commit 448a86851a
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
{
"name": "Account Banking Mandate",
"summary": "Banking mandates",
"version": "14.0.1.1.0",
"version": "14.0.1.1.1",
"license": "AGPL-3",
"author": "Compassion CH, "
"Tecnativa, "

View File

@@ -20,7 +20,7 @@ class ResPartnerBank(models.Model):
@api.constrains("company_id")
def _company_constrains(self):
for rpb in self:
if (
if rpb.company_id and (
self.env["account.banking.mandate"]
.sudo()
.search(