~unifield-team/unifield-wm/us-808-sync

« back to all changes in this revision

Viewing changes to sync_so/in_rw.py

  • Committer: Quentin THEURET
  • Date: 2016-02-03 13:39:16 UTC
  • Revision ID: qt@tempo-consulting.fr-20160203133916-mye69c4f0u3ouofr
US-808 [FIX] Fix issue on domain to retrive cancel INT

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
 
118
118
        pick_dict = int_info.to_dict()
119
119
        pick_name = pick_dict['name']
120
 
        origin = pick_dict['origin']
121
120
 
122
121
        self._logger.info("+++ RW: Cancel the Internal Picking: %s from %s to %s" % (pick_name, source, cr.dbname))
123
122
 
124
123
        rw_type = self._get_usb_entity_type(cr, uid)
125
124
        if rw_type == self.REMOTE_WAREHOUSE:
126
 
            existing_pick = self.search(cr, uid, [('name', '=', pick_name), ('type', '=', 'int'), ('state', '!=', 'done')], context=context)
 
125
            existing_pick = self.search(cr, uid, [('name', '=', pick_name), ('type', '=', 'internal'), ('state', '!=', 'done')], context=context)
127
126
            if not existing_pick:
128
127
                message = "Sorry, the INT: " + pick_name + " does not exist in " + cr.dbname
129
128
                self._logger.info(message)