'Returns the data required to display a reconciliation widget, for each statement line in self'

@api.multi
def get_data_for_reconciliation_widget(self, excluded_ids=None):

    excluded_ids = (excluded_ids or [])
    ret = []
    for st_line in self:
        aml_recs = st_line.get_reconciliation_proposition(excluded_ids=excluded_ids)
        target_currency = (st_line.currency_id or st_line.journal_id.currency_id or st_line.journal_id.company_id.currency_id)
        rp = aml_recs.prepare_move_lines_for_reconciliation_widget(target_currency=target_currency, target_date=st_line.date)
        excluded_ids += [move_line['id'] for move_line in rp]
        ret.append({'st_line': st_line.get_statement_line_for_reconciliation_widget(), 'reconciliation_proposition': rp})
    return ret
