mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
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:
committed by
Reyes4711
parent
03ed2e8534
commit
448a86851a
@@ -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, "
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user