In testing my module for the first time, this error is reported

----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/tests/test_tryton.py",
 line 198, in wrapper
    result = func(*args, **kwargs)
  File 
"/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/tests/test_tryton.py",
 line 361, in test_field_methods
    getattr(record, attr)()
  File 
"/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/model/fields/field.py",
 line 106, in wrapper
    return func(self, *args, **kwargs)
  File 
"/home/catonano/tributi/build/lib/trytond/modules/tributi/affissione.py", line 
38, in on_change_with_fattoreGiorni
    ng = abs((self.on_change_with_bollettaDataFine() - 
self.on_change_with_bollettaDataInizio()).days)
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'

----------------------------------------------------------------------


but when I run it in the GUI, fattoreGiorni DOES WORK

I swear !

You can see a picture here
https://imgur.com/a/kUUjs

-- 
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/c30a9b84-9ec4-443d-9c2b-66a780020a81%40googlegroups.com.

Reply via email to