[FIX] account_bank_statement_extensions: inadvertence error during cbe2dbb
Inadvertence error during the convertion to the new API. line_ids is already a list, no need to set it again in a list.
This commit is contained in:
parent
f28be81bc7
commit
77fd6fe9d4
|
@ -58,7 +58,7 @@ class account_bank_statement(osv.osv):
|
|||
line_ids = [l.id for l in st.line_ids]
|
||||
cr.execute("UPDATE account_bank_statement_line \
|
||||
SET state='draft' WHERE id in %s ",
|
||||
(tuple([line_ids]),))
|
||||
(tuple(line_ids),))
|
||||
bank_statement_line_obj.invalidate_cache(cr, uid, ['state'], line_ids, context=context)
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in New Issue