Skip to content

Commit

Permalink
Add untested force_sync in carepoint backend
Browse files Browse the repository at this point in the history
  • Loading branch information
lasley committed Oct 26, 2016
1 parent 78f8e8a commit b5d0180
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions connector_carepoint/models/carepoint_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,17 @@ def resync_all(self, binding_model):
force=True,
)

@api.model
def force_sync(self, binding_model, remote_pk, backend):
""" Force sycronization based on model and primary key """
session = self.__get_model_session()
import_record.delay(session,
binding_model,
backend.id,
remote_pk,
force=True,
)

@api.multi
def import_carepoint_item(self):
self._import_from_date('carepoint.carepoint.item',
Expand Down

0 comments on commit b5d0180

Please sign in to comment.