Can not create only indexes
When running trytond-admin
with --indexes
argument only (and the database of course), no indexes are created because models_with_indexes
is not filled.
I think it should be filled by all the models if any modules are updated.
Also the new transaction with autocommit is locked by the readonly transaction that is used to load the modules. So those locks must be released before starting a new transaction.