'Create domain criteria that are relevant to manual reconciliation.'

def _domain_move_lines_for_manual_reconciliation(self, account_id, partner_id=False, excluded_ids=None, str=False):

    domain = ['&', ('reconciled', '=', False), ('account_id', '=', account_id)]
    if partner_id:
        domain = expression.AND([domain, [('partner_id', '=', partner_id)]])
    generic_domain = self.domain_move_lines_for_reconciliation(excluded_ids=excluded_ids, str=str)
    return expression.AND([generic_domain, domain])
