Hello,

I use latest trunk.
When I push the button to create a new party I get an error message:

Traceback (most recent call last):
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/form.py", 
line 332, in sig_new
    self.screen.new()
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/view_form/screen/screen.py",
 
line 459, in new
    group.add(record, self.new_model_position())
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/view_form/model/group.py",
 
line 284, in add
    self.signal('group-changed', record)
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/signal_event.py", 
line 14, in signal
    fnct(self, signal_data, *data)
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/view_form/screen/screen.py",
 
line 301, in _group_changed
    self.display()
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/view_form/screen/screen.py",
 
line 748, in display
    view.display()
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/view_form/view/form.py",
 
line 454, in display
    widget.display(record, field)
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/view_form/view/form_gtk/one2many.py",
 
line 500, in display
    self.screen.group = new_group
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/view_form/screen/screen.py",
 
line 276, in __set_group
    self.__group.add_fields(fields)
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/view_form/model/group.py",
 
line 407, in add_fields
    record.set_default(values, signal=signal)
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/view_form/model/record.py",
 
line 433, in set_default
    self.signal('record-changed')
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/signal_event.py", 
line 14, in signal
    fnct(self, signal_data, *data)
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/view_form/model/group.py",
 
line 360, in _record_changed
    self.signal('group-changed', record)
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/signal_event.py", 
line 14, in signal
    fnct(self, signal_data, *data)
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/view_form/model/field.py",
 
line 466, in _group_changed
    parent.signal('record-changed')
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/signal_event.py", 
line 14, in signal
    fnct(self, signal_data, *data)
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/view_form/model/group.py",
 
line 360, in _record_changed
    self.signal('group-changed', record)
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/signal_event.py", 
line 14, in signal
    fnct(self, signal_data, *data)
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/view_form/screen/screen.py",
 
line 301, in _group_changed
    self.display()
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/view_form/screen/screen.py",
 
line 748, in display
    view.display()
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/view_form/view/form.py",
 
line 454, in display
    widget.display(record, field)
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/view_form/view/form_gtk/float.py",
 
line 18, in display
    digits = field.digits(record, factor=self.factor)
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/tryton/gui/window/view_form/model/field.py",
 
line 306, in digits
    return (digits[0] + shift, digits[1] - shift)
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'

Please help me.

Thanks.

Reply via email to