Fail to create new menu entry
When updating an existing database with a2938ffe0297, this traceback appears:
Traceback (most recent call last):
File "/home/ced/Projects/tryton/trytond/trytond/convert.py", line 467, in parse_xmlstream
self.sax_parser.parse(source)
File "/usr/lib/python3.12/xml/sax/expatreader.py", line 105, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python3.12/xml/sax/xmlreader.py", line 124, in parse
self.feed(buffer)
File "/usr/lib/python3.12/xml/sax/expatreader.py", line 211, in feed
self._parser.Parse(data, isFinal)
File "./Modules/pyexpat.c", line 475, in EndElement
File "/usr/lib/python3.12/xml/sax/expatreader.py", line 344, in end_element
self._cont_handler.endElement(name)
File "/home/ced/Projects/tryton/trytond/trytond/convert.py", line 522, in endElement
self.taghandler = self.taghandler.endElement(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/convert.py", line 174, in endElement
self.mh.import_record('ir.ui.menu', self.values, self.xml_id)
File "/home/ced/Projects/tryton/trytond/trytond/convert.py", line 697, in import_record
self.create_records(model, [values], [fs_id])
File "/home/ced/Projects/tryton/trytond/trytond/convert.py", line 702, in create_records
records = Model.create(vlist)
^^^^^^^^^^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/model/modelsql.py", line 275, in wrapper
return func(cls, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/model/modelsql.py", line 1032, in create
field.set(cls, fname, *fargs)
File "/home/ced/Projects/tryton/trytond/trytond/transaction.py", line 50, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/model/fields/function.py", line 186, in set
setter(Model.browse(ids), name, value)
File "/home/ced/Projects/tryton/trytond/trytond/ir/ui/menu.py", line 248, in set_action
ActionKeyword.create(to_create)
File "/home/ced/Projects/tryton/trytond/trytond/ir/action.py", line 235, in create
return super(ActionKeyword, cls).create(new_vlist)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/model/modelsql.py", line 275, in wrapper
return func(cls, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/model/modelsql.py", line 1040, in create
cls._validate(sub_records)
File "/home/ced/Projects/tryton/trytond/trytond/transaction.py", line 50, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/model/modelstorage.py", line 1520, in _validate
test = set(dict(sel_func()))
^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/ir/action.py", line 220, in models_get
return [(None, '')] + Model.get_name_items(ModelView)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/ir/model.py", line 181, in get_name_items
items = list(items)
^^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/ir/model.py", line 180, in <genexpr>
if issubclass(pool.get(m), classes))
^^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/pool.py", line 166, in get
return self._pool[type][name]
~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'account.configuration.payment_group_sequence'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ced/Projects/tryton/./trytond/bin/trytond-admin", line 33, in <module>
admin.run(options)
File "/home/ced/Projects/tryton/trytond/trytond/admin.py", line 59, in run
pool.init(update=options.update, lang=list(lang),
File "/home/ced/Projects/tryton/trytond/trytond/pool.py", line 144, in init
restart = not load_modules(
^^^^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/modules/__init__.py", line 402, in load_modules
_load_modules(update)
File "/home/ced/Projects/tryton/trytond/trytond/modules/__init__.py", line 372, in _load_modules
load_module_graph(graph, pool, update, lang, indexes)
File "/home/ced/Projects/tryton/trytond/trytond/modules/__init__.py", line 217, in load_module_graph
tryton_parser.parse_xmlstream(fp)
File "/home/ced/Projects/tryton/trytond/trytond/convert.py", line 469, in parse_xmlstream
raise ParsingError("in %s" % self.current_state()) from e
trytond.convert.ParsingError: in menuitem 'account_statement.menu_statement_journal_reporting'