Since c8771e45b861 locking table must be performed at the start of the transaction which is managed by the `Transaction.lock_table` method which is used by `ModelSQL.lock` but not `Database.lock`. Closes #13626
trytond ======= The server of Tryton. Tryton is business software, ideal for companies of any size, easy to use, complete and 100% Open Source. It provides modularity, scalability and security.