Wrong search field for bank code on res.bank object

Bug #537322 reported by sraps (Alistek)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Account Banking Framework
Invalid
Undecided
Unassigned

Bug Description

At banktools.py there are create_bank_account(...) function which searches on bank code acquired by assumption, but searches on wrong field:

bank_ids = bank_obj.search(cursor, uid, [
            ('code', 'ilike', bankcode)
        ])

The field it searches on, here is named "code" but should be "bic" - label on form for this field is "BIC/Swift code" so obviously it is the field where Swift code must be stored.

Changed in account-banking:
importance: Undecided → Medium
Revision history for this message
Pieter J. Kersten (EduSense BV) (pieterj) wrote :

The bic/swift has the name 'bic', not 'code'. 'code' is filled with a search key based on bic.

Changed in account-banking:
status: New → Invalid
importance: Medium → Undecided
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.