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:
@@ -55,7 +55,8 @@ On each generated line, you have many choices:
|
|||||||
* Change the state (so you can ignore or reopen lines)
|
* Change the state (so you can ignore or reopen lines)
|
||||||
""",
|
""",
|
||||||
'website': 'http://www.camptocamp.com',
|
'website': 'http://www.camptocamp.com',
|
||||||
'init_xml': ["data.xml"],
|
'init_xml': ["data.xml",
|
||||||
|
],
|
||||||
'update_xml': ["line_view.xml",
|
'update_xml': ["line_view.xml",
|
||||||
"account_view.xml",
|
"account_view.xml",
|
||||||
"partner_view.xml",
|
"partner_view.xml",
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ class CreditControlLine(Model):
|
|||||||
context=context)
|
context=context)
|
||||||
|
|
||||||
errors = []
|
errors = []
|
||||||
db, __ = pooler.get_db_and_pool(cursor.dbname)
|
db = pooler.get_db(cursor.dbname)
|
||||||
local_cr = db.cursor()
|
local_cr = db.cursor()
|
||||||
try:
|
try:
|
||||||
for line in ml_obj.browse(cursor, uid, lines, context):
|
for line in ml_obj.browse(cursor, uid, lines, context):
|
||||||
|
|||||||
@@ -155,7 +155,8 @@ class CreditControlRun(Model):
|
|||||||
Lock the ``credit_control_run`` Postgres table to avoid concurrent
|
Lock the ``credit_control_run`` Postgres table to avoid concurrent
|
||||||
calls of this method.
|
calls of this method.
|
||||||
"""
|
"""
|
||||||
context = context or {}
|
if context is None:
|
||||||
|
context = {}
|
||||||
try:
|
try:
|
||||||
cursor.execute('SELECT id FROM credit_control_run'
|
cursor.execute('SELECT id FROM credit_control_run'
|
||||||
' LIMIT 1 FOR UPDATE NOWAIT' )
|
' LIMIT 1 FOR UPDATE NOWAIT' )
|
||||||
|
|||||||
Reference in New Issue
Block a user