changeset 74d044455cde in modules/account_deposit:default
details:
https://hg.tryton.org/modules/account_deposit?cmd=changeset&node=74d044455cde
description:
Use ModelSQL lock instead of database lock
issue10785
diffstat:
party.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 6e4ff2b41d73 -r 74d044455cde party.py
--- a/party.py Sat Aug 21 09:09:55 2021 +0200
+++ b/party.py Mon Oct 18 01:22:26 2021 +0200
@@ -120,7 +120,7 @@
where=where,
for_=For('UPDATE', nowait=True)))
else:
- transaction.database.lock(transaction.connection, MoveLine._table)
+ MoveLine.lock()
cursor.execute(*line.select(
Sum(Coalesce(line.debit, 0) - Coalesce(line.credit, 0)),
where=where))