Allow locking tables by calling ModelSQL.lock without records

issue10785
review359051002
This commit is contained in:
Cédric Krier committed 2021-10-03 13:50:33 +02:00
1 parent e0535046ac
commit de6787cd7d
1 file changed
+1 -1
+1 -1
View File
@@ -127,7 +127,7 @@ class SubscriptionLine(metaclass=PoolMeta):
connection = transaction.connection
cursor = connection.cursor()
transaction.database.lock(connection, cls._table)
cls.lock()
line = cls.__table__()
other = cls.__table__()