mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] small changes
(lp:c2c-addons/6.1 rev 89.1.23)
This commit is contained in:
@@ -155,7 +155,8 @@ class CreditControlRun(Model):
|
||||
Lock the ``credit_control_run`` Postgres table to avoid concurrent
|
||||
calls of this method.
|
||||
"""
|
||||
context = context or {}
|
||||
if context is None:
|
||||
context = {}
|
||||
try:
|
||||
cursor.execute('SELECT id FROM credit_control_run'
|
||||
' LIMIT 1 FOR UPDATE NOWAIT' )
|
||||
|
||||
Reference in New Issue
Block a user