← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 704671] Re: [V6rc2] create new one2many -> Nonetype has no attribute signal

 

Same error adding a new line to an SO

Traceback (most recent call last):
  File "/home/graemeg/workspace/gtk-client/bin/widget/view/form_gtk/one2many_list.py", line 323, in _sig_new
    dia = dialog(self.attrs['relation'], parent=self._view.model, attrs=self.attrs, model_ctx=self.screen.models._context, window=self._window, readonly=self._readonly, context=ctx)
  File "/home/graemeg/workspace/gtk-client/bin/widget/view/form_gtk/one2many_list.py", line 104, in __init__
    self.screen.add_view(arch, fields, display=True, context=context)
  File "/home/graemeg/workspace/gtk-client/bin/widget/screen/screen.py", line 628, in add_view
    self.models.add_fields(fields, self.models, context=context)
  File "/home/graemeg/workspace/gtk-client/bin/widget/model/group.py", line 408, in add_fields
    mod.set_default(values)
  File "/home/graemeg/workspace/gtk-client/bin/widget/model/record.py", line 234, in set_default
    self.mgroup.mfields[field].set_default(self, value)
  File "/home/graemeg/workspace/gtk-client/bin/widget/model/field.py", line 443, in set_default
    mod.signal('record-changed')
AttributeError: 'NoneType' object has no attribute 'signal'

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

Title:
  [V6rc2] create new one2many -> Nonetype  has no attribute signal

Status in OpenObject GTK Client:
  New

Bug description:
  Client revision 1784
  Server revision 3294

  Ubuntu 10.04 i386 latest update

  Following happens at least at: new product -> add new supplier in
  suppliers tab

  Traceback (most recent call last):
    File "/home/ruben/workspace/openobject-client/bin/widget/view/form_gtk/one2many_list.py", line 323, in _sig_new
      dia = dialog(self.attrs['relation'], parent=self._view.model, attrs=self.attrs, model_ctx=self.screen.models._context, window=self._window, readonly=self._readonly, context=ctx)
    File "/home/ruben/workspace/openobject-client/bin/widget/view/form_gtk/one2many_list.py", line 107, in __init__
      context=context)
    File "/home/ruben/workspace/openobject-client/bin/widget/screen/screen.py", line 582, in add_view_id
      toolbar=view.get('toolbar', False), submenu=view.get('submenu', False), context=context)
    File "/home/ruben/workspace/openobject-client/bin/widget/screen/screen.py", line 619, in add_view
      self.models.add_fields(fields, self.models, context=context)
    File "/home/ruben/workspace/openobject-client/bin/widget/model/group.py", line 408, in add_fields
      mod.set_default(values)
    File "/home/ruben/workspace/openobject-client/bin/widget/model/record.py", line 232, in set_default
      self.mgroup.mfields[fieldname].set_default(self, value)
    File "/home/ruben/workspace/openobject-client/bin/widget/model/field.py", line 445, in set_default
      mod.signal('record-changed')
  AttributeError: 'NoneType' object has no attribute 'signal'





References