'Returns unreconciled move lines for an account or a partner+account, formatted for the manual reconciliation widget'

@api.model
def get_move_lines_for_manual_reconciliation(self, account_id, partner_id=False, excluded_ids=None, str=False, offset=0, limit=None, target_currency_id=False):

    domain = self._domain_move_lines_for_manual_reconciliation(account_id, partner_id, excluded_ids, str)
    lines = self.search(domain, offset=offset, limit=limit, order='date_maturity    asc,    id    asc')
    if target_currency_id:
        target_currency = self.env['res.currency'].browse(target_currency_id)
    else:
        account = self.env['account.account'].browse(account_id)
        target_currency = (account.currency_id or account.company_id.currency_id)
    return lines.prepare_move_lines_for_reconciliation_widget(target_currency=target_currency)
