Skip to content

Commit

Permalink
circulation: adapt reroils
Browse files Browse the repository at this point in the history
Adapts reroils after the upgrade to invenio-circulation v1.0.0a21.

The two transitions ItemOnLoanToItemReturned and ItemOnLoanToItemReturned are
temporarily updated and inserted into reroils until a fix for the issue
inveniosoftware/invenio-circulation#127 is available.

This PR expects the fix for the ITEM_AT_DESK problem in the current version
of invenio-circulation.

Some timezone units testing are disabled until a fix is given in a later PR.

Co-Authored-by: Aly Badr <aly.badr@rero.ch>
  • Loading branch information
Aly Badr authored and blankoworld committed May 26, 2020
1 parent 103c5c9 commit d41b377
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions rero_ils/modules/documents/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
series_format_text, title_format_text_alternate_graphic, \
title_format_text_head, title_variant_format_text
from ..holdings.api import Holding
from ..items.api import Item
from ..items.models import ItemCirculationAction
from ..libraries.api import Library
from ..locations.api import Location
Expand Down
1 change: 1 addition & 0 deletions rero_ils/modules/items/api/circulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from invenio_i18n.ext import current_i18n
from invenio_pidstore.errors import PersistentIdentifierError
from invenio_records_rest.utils import obj_or_import_string
from invenio_pidstore.errors import PersistentIdentifierError
from invenio_search import current_search

from ..models import ItemCirculationAction, ItemStatus
Expand Down
2 changes: 1 addition & 1 deletion tests/api/test_loans_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from invenio_accounts.testutils import login_user_via_session
from invenio_circulation.api import get_loan_for_item
from invenio_circulation.search.api import LoansSearch
from utils import flush_index, get_json, postdata
from utils import check_timezone_date, flush_index, get_json, postdata

from rero_ils.modules.api import IlsRecordError
from rero_ils.modules.items.api import Item
Expand Down

0 comments on commit d41b377

Please sign in to comment.