mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[IMP] Docstring
This commit is contained in:
@@ -119,8 +119,12 @@ class banking_import_transaction(orm.Model):
|
||||
|
||||
def bank_match(account, partner_bank):
|
||||
"""
|
||||
Compare account number with or without presence
|
||||
of the domestic number field
|
||||
Returns whether a given account number is equivalent to a
|
||||
partner bank in the database. We simply call the search method,
|
||||
which checks IBAN, domestic and disregards from spaces in IBANs.
|
||||
|
||||
:param account: string representation of a bank account number
|
||||
:param partner_bank: browse record of model res.partner.bank
|
||||
"""
|
||||
return partner_bank.id in self.pool['res.partner.bank'].search(
|
||||
cr, uid, [('acc_number', '=', account)])
|
||||
|
||||
Reference in New Issue
Block a user