[6.1] Banking addons: AttributeError: 'bool' object has no attribute 'upper'

Bug #1164339 reported by Erwin van der Ploeg (BAS Solutions)
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Banking Addons
Confirmed
Undecided
Unassigned

Bug Description

Hello,

On importing a Mt940 Raboban statement i get an error

Traceback (most recent call last):
  File "C:\Program Files\OpenERP 6.1\Server\server\.\openerp\osv\osv.py", line 121, in wrapper
  File "C:\Program Files\OpenERP 6.1\Server\server\.\openerp\osv\osv.py", line 176, in execute
  File "C:\Program Files\OpenERP 6.1\Server\server\openerp\addons\audittrail\audittrail.py", line 495, in execute_cr
  File "C:\Program Files\OpenERP 6.1\Server\server\.\openerp\osv\osv.py", line 164, in execute_cr
  File "C:\Program Files\OpenERP 6.1\Server\server\openerp\addons\account_banking\wizard\bank_import.py", line 316, in import_statements_file
  File "C:\Program Files\OpenERP 6.1\Server\server\openerp\addons\account_banking\banking_import_transaction.py", line 1359, in match
  File "C:\Program Files\OpenERP 6.1\Server\server\openerp\addons\account_banking\banking_import_transaction.py", line 300, in _match_invoice
AttributeError: 'bool' object has no attribute 'upper'

I have solved it by changing 2 lines in: account_banking/banking_import_transaction.py

from:
299 ref = trans.reference.upper()
300 msg = trans.message.upper()

to:
299 ref = trans.reference and trans.reference.upper() or ''
300 msg = trans.message and trans.message.upper() or ''

So, hope this is ok and can be adopted in code.

Changed in banking-addons:
status: New → Confirmed
Revision history for this message
Ruchir Shukla(BizzAppDev) (ruchir.shukla) wrote :

Please find the attached Patch file for the same .

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.