diff --git a/account_statement_base_completion/statement.py b/account_statement_base_completion/statement.py index b690a1b6..65282f3b 100644 --- a/account_statement_base_completion/statement.py +++ b/account_statement_base_completion/statement.py @@ -349,16 +349,15 @@ class AccountStatementCompletionRule(orm.Model): 'than one partner while looking on partner by name') % (st_line['name'], st_line['ref'])) res['partner_id'] = result[0][0] - if res: - st_vals = st_obj.get_values_for_line(cr, - uid, - profile_id=st_line['porfile_id'], - master_account_id=st_line['master_account_id'], - partner_id=res['partner_id'], - line_type=False, - amount=st_line['amount'] if st_line['amount'] else 0.0, - context=context) - res.update(st_vals) + st_vals = st_obj.get_values_for_line(cr, + uid, + profile_id=st_line['porfile_id'], + master_account_id=st_line['master_account_id'], + partner_id=res['partner_id'], + line_type=False, + amount=st_line['amount'] if st_line['amount'] else 0.0, + context=context) + res.update(st_vals) return res