[6.0] Bug report when no bank account in partner

Bug #952963 reported by Grzegorz Grzelak (OpenGLOBE.pl)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Banking Addons
Fix Released
Low
Unassigned

Bug Description

After tests of successful reconciliation of incoming payment when partner contains a bank account defined in partner form I tried to see what happen when partner doesn't contain bank account. And I got bug report below.

It seems simple typing bug. Patch to fix it:
141- filter.append(('street', 'ilike', addres[0]))
141+ filter.append(('street', 'ilike', address[0])) # GG fix

143- filter.append(('street2', 'ilike', addres[0]))
143+ filter.append(('street2', 'ilike', address[0])) # GG fix

But after this fix I get another bug I will report separately.

Environment Information :
System : Linux-2.6.32-39-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
LSB Version: core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch:cxx-3.0-ia32:cxx-3.0-noarch:cxx-3.1-ia32:cxx-3.1-noarch:cxx-3.2-ia32:cxx-3.2-noarch:cxx-4.0-ia32:cxx-4.0-noarch:desktop-3.1-ia32:desktop-3.1-noarch:desktop-3.2-ia32:desktop-3.2-noarch:desktop-4.0-ia32:desktop-4.0-noarch:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch:graphics-3.1-ia32:graphics-3.1-noarch:graphics-3.2-ia32:graphics-3.2-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-3.2-ia32:printing-3.2-noarch:printing-4.0-ia32:printing-4.0-noarch:qt4-3.1-ia32:qt4-3.1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-39-generic
Operating System Version : #86-Ubuntu SMP Mon Feb 13 21:47:32 UTC 2012
Operating System Architecture : 32bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0.2
Last revision No. & ID :1835 launchpad_translations_on_behalf_of_openerp-20110413143452-vuta882s04fsp92t
Traceback (most recent call last):
  File "/home/openerp/production/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/openerp/production/server/bin/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/home/openerp/production/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/openerp/production/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/openerp/production/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/gg/addons-60-third/account_banking/wizard/bank_import.py", line 753, in import_statements_file
    country_code, results.log
  File "/home/gg/addons-60-third/account_banking/wizard/banktools.py", line 141, in get_or_create_partner
    filter.append(('street', 'ilike', addres[0]))
NameError: global name 'addres' is not defined

Related branches

Changed in banking-addons:
status: New → Fix Committed
importance: Undecided → Low
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Hi Grzegorz,

thank you for reporting. Sorry for the delay, but my initial reaction was to wait for the followup bug report that you promised. It would still be appreciated.

Cheers,
Stefan.

Changed in banking-addons:
status: Fix Committed → Fix Released
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.