I’m trying to create an XML to set up a strict sequence in ir.sequence.strict, but it’s not working. It generates an error when I execute ‘tryto-admin -c conf -d database --all’. However, when it’s a sequence in ir.sequence, it generates without any issue, I just change the reference to the model.
C(tryton) root@localhost:~# tryto-admin -c /opt/tryton/config/trytond.conf -d tryton --all
Traceback (most recent call last):
File "/opt/tryton/lib64/python3.11/site-packages/trytond/convert.py", line 464, in parse_xmlstream
self.sax_parser.parse(source)
File "/usr/lib64/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib64/python3.11/xml/sax/xmlreader.py", line 125, in parse
self.feed(buffer)
File "/usr/lib64/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
File "/builddir/build/BUILD/Python-3.11.7/Modules/pyexpat.c", line 468, in EndElement
File "/usr/lib64/python3.11/xml/sax/expatreader.py", line 336, in end_element
self._cont_handler.endElement(name)
File "/opt/tryton/lib64/python3.11/site-packages/trytond/convert.py", line 519, in endElement
self.taghandler = self.taghandler.endElement(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/tryton/lib64/python3.11/site-packages/trytond/convert.py", line 314, in endElement
self.mh.import_record(
File "/opt/tryton/lib64/python3.11/site-packages/trytond/convert.py", line 627, in import_record
raise ParsingError(
trytond.convert.ParsingError: wrong model 'ir.sequence.strict': account_es_es_vf.seq_invoice_order
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/tryton/bin/trytond-admin", line 31, in <module>
admin.run(options)
File "/opt/tryton/lib64/python3.11/site-packages/trytond/admin.py", line 57, in run
pool.init(update=options.update, lang=list(lang),
File "/opt/tryton/lib64/python3.11/site-packages/trytond/pool.py", line 167, in init
restart = not load_modules(
^^^^^^^^^^^^^
File "/opt/tryton/lib64/python3.11/site-packages/trytond/modules/__init__.py", line 384, in load_modules
_load_modules(update)
File "/opt/tryton/lib64/python3.11/site-packages/trytond/modules/__init__.py", line 352, in _load_modules
load_module_graph(graph, pool, update, lang)
File "/opt/tryton/lib64/python3.11/site-packages/trytond/modules/__init__.py", line 203, in load_module_graph
tryton_parser.parse_xmlstream(fp)
File "/opt/tryton/lib64/python3.11/site-packages/trytond/convert.py", line 466, in parse_xmlstream
raise ParsingError("in %s" % self.current_state()) from e
trytond.convert.ParsingError: in record 'account_es_es_vf.seq_invoice_order'