Il giorno domenica 21 gennaio 2018 17:50:09 UTC+1, Cédric Krier ha scritto:
> On 2018-01-21 07:58, Cato Nano wrote:
> > 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 ?
> 
> $ python -m trytond.tests.run-tests -m my_module
> 
> -- 
> Cédric Krier - B2CK SPRL
> Email/Jabber: [email protected]
> Tel: +32 472 54 46 59
> Website: http://www.b2ck.com/

Ok, I managed to pass the tests but the error in the client remains

These are the tests
$ python run-tests.py -m tributi
/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/modules/__init__.py:143:
 DeprecationWarning: This method will be removed in future versions.  Use 
'parser.read_file()' instead.
  module_config.readfp(fp)
/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/modules/__init__.py:143:
 DeprecationWarning: This method will be removed in future versions.  Use 
'parser.read_file()' instead.
  module_config.readfp(fp)
/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/backend/sqlite/table.py:281:
 UserWarning: Unable to remove not null with SQLite backend
  warnings.warn('Unable to remove not null with SQLite backend')
/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/backend/sqlite/table.py:245:
 UserWarning: Unable to drop foreign key with SQLite backend
  warnings.warn('Unable to drop foreign key with SQLite backend')
/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/backend/sqlite/table.py:289:
 UserWarning: Unable to drop constraint with SQLite backend
  warnings.warn('Unable to drop constraint with SQLite backend')
/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/backend/sqlite/table.py:176:
 UserWarning: Unable to set default on column with SQLite backend
  warnings.warn('Unable to set default on column with SQLite backend')
/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/backend/sqlite/table.py:279:
 UserWarning: Unable to set not null with SQLite backend
  warnings.warn('Unable to set not null with SQLite backend')
/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/backend/sqlite/table.py:286:
 UserWarning: Unable to add constraint with SQLite backend
  warnings.warn('Unable to add constraint with SQLite backend')
/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/backend/sqlite/table.py:242:
 UserWarning: Unable to add foreign key with SQLite backend
  warnings.warn('Unable to add foreign key with SQLite backend')
/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/model/fields/function.py:100:
 DeprecationWarning: inspect.getargspec() is deprecated, use 
inspect.signature() or inspect.getfullargspec()
  if 'names' in inspect.getargspec(method)[0]:
----------------------------------------------------------------------
Ran 13 tests in 8.199s

OK


And this is the error in the client when I go to save a line

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'



The sequence attribute is not a field name

The attribute of which field are you referring to ?

Thanks
Ciao

-- 
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/5eb76b9d-8ed2-4178-a75c-caa12e042a58%40googlegroups.com.

Reply via email to