[TRUNK][REGRESSION] KeyError: 'valid'

Bug #735986 reported by tfr (Openerp)
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

=> open a lead, convert into opportunity and the action return by the method is not executed :

Traceback (most recent call last):
  File "/home/openerp/source/client/trunk/bin/widget/view/form_gtk/parser.py", line 123, in button_clicked
    model.get_button_action(self.form.screen, id, self.attrs)
  File "/home/openerp/source/client/trunk/bin/widget/model/record.py", line 379, in get_button_action
    obj._exec_action(result, {}, context=context)
  File "/home/openerp/source/client/trunk/bin/modules/action/main.py", line 143, in _exec_action
    limit=datas['limit'], auto_refresh=datas['auto_refresh'], auto_search = datas['auto_search'], search_view = datas['search_view'])
  File "/home/openerp/source/client/trunk/bin/modules/gui/window/__init__.py", line 49, in create
    auto_refresh=auto_refresh, auto_search=auto_search, search_view=search_view)
  File "/home/openerp/source/client/trunk/bin/modules/gui/window/form.py", line 130, in __init__
    self.screen.load(res_id)
  File "/home/openerp/source/client/trunk/bin/widget/screen/screen.py", line 793, in load
    self.display(ids[0])
  File "/home/openerp/source/client/trunk/bin/widget/screen/screen.py", line 802, in display
    self.current_view.display()
  File "/home/openerp/source/client/trunk/bin/widget/view/form.py", line 401, in display
    widget.display(model, state)
  File "/home/openerp/source/client/trunk/bin/widget/view/form.py", line 53, in display
    self.widget.display(model, modelfield)
  File "/home/openerp/source/client/trunk/bin/widget/view/form_gtk/one2many_list.py", line 425, in display
    if not self.model_field.get_state_attrs(model)['valid']:
KeyError: 'valid'

Related branches

Revision history for this message
tfr (Openerp) (tfr) wrote :

Then go to the converted opportunity (if you created a new partner) try to open the new partner :
same error

Traceback (most recent call last):
  File "/home/openerp/source/client/trunk/bin/widget/view/form_gtk/many2one.py", line 280, in sig_edit
    dia = dialog(self.attrs['relation'], self._view.modelfield.get(self._view.model), attrs=self.attrs, window=self._window, domain=domain, context=context)
  File "/home/openerp/source/client/trunk/bin/widget/view/form_gtk/many2one.py", line 81, in __init__
    self.screen.load([id])
  File "/home/openerp/source/client/trunk/bin/widget/screen/screen.py", line 793, in load
    self.display(ids[0])
  File "/home/openerp/source/client/trunk/bin/widget/screen/screen.py", line 802, in display
    self.current_view.display()
  File "/home/openerp/source/client/trunk/bin/widget/view/form.py", line 401, in display
    widget.display(model, state)
  File "/home/openerp/source/client/trunk/bin/widget/view/form.py", line 53, in display
    self.widget.display(model, modelfield)
  File "/home/openerp/source/client/trunk/bin/widget/view/form_gtk/one2many_list.py", line 425, in display
    if not self.model_field.get_state_attrs(model)['valid']:
KeyError: 'valid'

Changed in openobject-client:
status: Confirmed → 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.