Can not hash, print etc. of EDocument UN/CEFACT Invoice
Any dunder methods which are using id
attribute fails with a recursion error like:
Traceback (most recent call last):
File "/home/ced/Projects/tryton/trytond/trytond/tests/test_tryton.py", line 266, in wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/modules/edocument_uncefact/tests/test_module.py", line 127, in test_16B_CII_CrossIndustryInvoice
print(template)
File "/home/ced/Projects/tryton/trytond/trytond/model/model.py", line 335, in __str__
return '%s,%s' % (self.__name__, self.id)
^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/model/fields/field.py", line 392, in __get__
return inst._id
^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/model/model.py", line 323, in __getattr__
return self._values[name]
^^^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/model/model.py", line 323, in __getattr__
return self._values[name]
^^^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/model/model.py", line 323, in __getattr__
return self._values[name]
^^^^^^^^^^^^
[Previous line repeated 969 more times]
File "/home/ced/Projects/tryton/trytond/trytond/model/model.py", line 320, in __getattr__
if name.startswith('__') and name.endswith('__'):
^^^^^^^^^^^^^^^^^^^^^
RecursionError: maximum recursion depth exceeded while calling a Python object