On 2018-01-21 01:33, Cato Nano wrote:
> I' m getting this error
> 
> $ tryton 
> /home/catonano/tryton-client/lib/python2.7/site-packages/tryton/gui/window/view_form/view/form.py:48:
>  Warning: value "0" of type 'guint' is invalid or out of range for property 
> 'n-columns' of type 'guint'
>   self.table = gtk.Table(1, col)
> ERROR:tryton.common.common:Traceback (most recent call last):
>   File 
> "/home/catonano/tryton-client/lib/python2.7/site-packages/tryton/gui/window/win_form.py",
>  line 421, in response
>     self.callback(result)
>   File 
> "/home/catonano/tryton-client/lib/python2.7/site-packages/tryton/gui/window/view_form/view/form_gtk/one2many.py",
>  line 364, in <lambda>
>     WinForm(self.screen, lambda a: update_sequence(), new=True,
>   File 
> "/home/catonano/tryton-client/lib/python2.7/site-packages/tryton/gui/window/view_form/view/form_gtk/one2many.py",
>  line 355, in update_sequence
>     self.screen.group.set_sequence(field=sequence)
>   File 
> "/home/catonano/tryton-client/lib/python2.7/site-packages/tryton/gui/window/view_form/model/group.py",
>  line 316, in set_sequence
>     value = record[field].get(record)
> AttributeError: 'bool' object has no attribute 'get'
> 
> 'bool' object has no attribute 'get'
> 
> 
> I understand that record[field] returns a boolean
> 
> How is that ?

The sequence attribute has a value that is not a field name.

I submit https://bugs.tryton.org/issue7073 to improve the exception.

Also you should consider using at least the standard ModuleTestCase
which should catch such errors.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180121100434.GC4239%40kei.

Reply via email to