From de6787cd7d4a005c2f9dc374638c1c7ed83be6ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 3 Oct 2021 13:50:33 +0200 Subject: [PATCH] Allow locking tables by calling ModelSQL.lock without records issue10785 review359051002 --- sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sale.py b/sale.py index 64d18bee84..cdce3e137a 100644 --- a/sale.py +++ b/sale.py @@ -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__()