win_search invalid keyword argument

Bug #868979 reported by Thibaut DIRLIK (Logica)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Released
Medium
OpenERP sa GTK client R&D

Bug Description

There is a bug in the latest trunk GTK client (revno=1966) :

In the file "bin/widget/view/form_gtk/many2one.py" line 219 [1], you call win_search constructor with a undefined keyword "window". If you check the __init__ method of win_search "bin/modules/gui/window/win_search.py" line 110 [2] you will see a "parent" keywork, not "window". I think it has been renamed.

To trigger the bug, create a new country named "france" (with a MINUS 'f'), with a random code. Now, opens a partner form view (with base_contact installed !) and enter "france" in the country field.

The autocompletion widget should open, clicks on France, and look at your client console :

Traceback (most recent call last):
  File "/home/thibaut/OpenERP 6/Trunk/client/bin/widget/view/form_gtk/many2one.py", line 221, in on_completion_match
    domain=domain, window=self._window)
TypeError: __init__() got an unexpected keyword argument 'window'

[1] http://bazaar.launchpad.net/~openerp/openobject-client/trunk/view/head:/bin/widget/view/form_gtk/many2one.py#L219
[2] http://bazaar.launchpad.net/~openerp/openobject-client/trunk/view/head:/bin/modules/gui/window/win_search.py#L110

Related branches

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello Thibault,

Thanks for reporting !

The typo and along with it the win_search was popped up twice both has been fixed.
It has been fixed at trunk client with revision-info:1967 <email address hidden>

Thanks,

Changed in openobject-client:
status: New → Confirmed
importance: Undecided → Low
importance: Low → Medium
assignee: nobody → OpenERP sa GTK client R&D (openerp-dev-gtk)
status: Confirmed → In Progress
status: In Progress → 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.