Il giorno domenica 21 gennaio 2018 11:05:06 UTC+1, Cédric Krier ha scritto:
> 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/

ok, thanks

The manual says that I nee dto run

run-tests.py -m my_module

but I can't find it

It' s not a binary in my virtualenv

With grep, I found this file
env/lib/python3.6/site-packages/trytond/tests/__pycache__/run-tests.cpython-36.pyc

How am I supposed to call it ?

Please forgive my naive question

-- 
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/25596692-8b15-4ad5-a248-41e9684beebe%40googlegroups.com.

Reply via email to