Parsing error when updating database

When I try trytond-admin -c trytond.conf -d training -u account_ca_gifi, I get an error:

(.venv) awes7@mydev:~/projects/training$ trytond-admin -c trytond.conf -d training -u account_ca_gifi
Traceback (most recent call last):
  File "/home/awes7/projects/training/.venv/lib/python3.10/site-packages/trytond/convert.py", line 464, in parse_xmlstream
    self.sax_parser.parse(source)
  File "/usr/lib/python3.10/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python3.10/xml/sax/xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "/usr/lib/python3.10/xml/sax/expatreader.py", line 217, in feed
    self._parser.Parse(data, isFinal)
  File "../Modules/pyexpat.c", line 416, in StartElement
  File "/usr/lib/python3.10/xml/sax/expatreader.py", line 333, in start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "/home/awes7/projects/training/.venv/lib/python3.10/site-packages/trytond/convert.py", line 496, in startElement
    self.taghandler.startElement(name, attributes)
  File "/home/awes7/projects/training/.venv/lib/python3.10/site-packages/trytond/convert.py", line 249, in startElement
    field = self.model._fields[field_name]
KeyError: 'balance_sheet'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/awes7/projects/training/.venv/bin/trytond-admin", line 31, in <module>
    admin.run(options)
  File "/home/awes7/projects/training/.venv/lib/python3.10/site-packages/trytond/admin.py", line 57, in run
    pool.init(update=options.update, lang=list(lang),
  File "/home/awes7/projects/training/.venv/lib/python3.10/site-packages/trytond/pool.py", line 165, in init
    restart = not load_modules(
  File "/home/awes7/projects/training/.venv/lib/python3.10/site-packages/trytond/modules/__init__.py", line 454, in load_modules
    _load_modules(update)
  File "/home/awes7/projects/training/.venv/lib/python3.10/site-packages/trytond/modules/__init__.py", line 422, in _load_modules
    load_module_graph(graph, pool, update, lang)
  File "/home/awes7/projects/training/.venv/lib/python3.10/site-packages/trytond/modules/__init__.py", line 255, in load_module_graph
    tryton_parser.parse_xmlstream(fp)
  File "/home/awes7/projects/training/.venv/lib/python3.10/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_ca_gifi.gifi_BLSH'

Your custom module account_ca_gifi has invalid record in the XML files. It is referencing a balance_sheet that does not exist.
It looks like it is an old version of an account chart that is no more compatible with the server series.