Crash when creating any record on sqlite 3.41.2
Since 989eeee984e4 I get the following error when running stock module tests:
======================================================================
FAIL: /home/pokoli/projectes/tryton/modules/stock/tests/scenario_stock_shipment_out_consumable.rst
Doctest: scenario_stock_shipment_out_consumable.rst
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.10/doctest.py", line 2221, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for scenario_stock_shipment_out_consumable.rst
File "/home/pokoli/projectes/tryton/modules/stock/tests/scenario_stock_shipment_out_consumable.rst", line 0
----------------------------------------------------------------------
File "/home/pokoli/projectes/tryton/modules/stock/tests/scenario_stock_shipment_out_consumable.rst", line 25, in scenario_stock_shipment_out_consumable.rst
Failed example:
_ = create_company()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.10/doctest.py", line 1350, in __run
exec(compile(example.source, filename, "single",
File "<doctest scenario_stock_shipment_out_consumable.rst[10]>", line 1, in <module>
_ = create_company()
File "/home/pokoli/projectes/tryton/trytond/trytond/modules/company/tests/tools.py", line 15, in create_company
company_config = Wizard('company.company.config', config=config)
File "/home/pokoli/projectes/tryton/proteus/proteus/__init__.py", line 1218, in __init__
result = self._proxy.create(self._context)
File "/home/pokoli/projectes/tryton/proteus/proteus/config.py", line 209, in __call__
result = rpc.result(meth(*c_args, **c_kwargs))
File "/home/pokoli/projectes/tryton/trytond/trytond/wizard/wizard.py", line 298, in create
return (Session.create([{}])[0].id, cls.start_state, cls.end_state)
File "/home/pokoli/projectes/tryton/trytond/trytond/model/modelsql.py", line 234, in wrapper
return func(cls, *args, **kwargs)
File "/home/pokoli/projectes/tryton/trytond/trytond/model/modelsql.py", line 880, in create
new_ids.extend(db_insert(
File "/home/pokoli/projectes/tryton/trytond/trytond/model/modelsql.py", line 789, in db_insert
cursor.execute(*table.insert(
sqlite3.OperationalError: no such column: a.id
Here is my sqlite version:
$ sqlite3 --version
3.41.2 2023-03-22 11:56:21 0d1fc92f94cb6b76bffe3ec34d69cffde2924203304e8ffc4155597af0c1alt1