Follow PEP-0249 for Transaction and backends
issue4949 review19781002
This commit is contained in:
1 parent
ee2242ff70
commit
7db2e1ba10
1 file changed
+1
-1
@@ -74,7 +74,7 @@ class Party:
|
||||
|
||||
for model in self._credit_limit_to_lock():
|
||||
Model = pool.get(model)
|
||||
Transaction().cursor.lock(Model._table)
|
||||
Transaction().database.lock(Transaction().connection, Model._table)
|
||||
if self.credit_limit_amount < self.credit_amount + amount:
|
||||
if not in_group():
|
||||
self.raise_user_error('credit_limit_amount',
|
||||
|
||||
Reference in new issue
Block a user