Skip to content
Permalink
Browse files

[FIX] account: use correct variable on iteration

closes #36616

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
  • Loading branch information...
i-vyshnevska authored and mart-e committed Sep 10, 2019
1 parent d0ca5d6 commit 1ebf5cc192e51b6cdfd062a8480cd88ccd3720ce
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/account/models/account_bank_statement.py
@@ -299,7 +299,7 @@ def reconciliation_widget_preprocess(self):

#try to assign partner to bank_statement_line
stl_to_assign_partner = [stl.id for stl in st_lines_left if not stl.partner_id]
refs = list(set([st.name for st in st_lines_left if not stl.partner_id]))
refs = list(set([st.name for st in st_lines_left if not st.partner_id]))
if st_lines_left and stl_to_assign_partner and refs\
and st_lines_left[0].journal_id.default_credit_account_id\
and st_lines_left[0].journal_id.default_debit_account_id:

0 comments on commit 1ebf5cc

Please sign in to comment.
You can’t perform that action at this time.