← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 868979] [NEW] win_search invalid keyword argument

 

Public bug reported:

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

** Affects: openobject-client
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/868979

Title:
  win_search invalid keyword argument

Status in OpenERP GTK Client:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client/+bug/868979/+subscriptions


Follow ups

References