~numerigraphe-team/stock-logistic-warehouse/7.0-inventory-hierarchical

« back to all changes in this revision

Viewing changes to stock_inventory_location/stock_inventory_location.py

  • Committer: Loïc BELLIER
  • Date: 2014-06-13 07:26:50 UTC
  • mfrom: (37.2.5 7.0)
  • Revision ID: lb@numerigraphe.com-20140613072650-e16txntc98bg6oma
[MERGE]: merge from dev branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
                ('usage', '=', 'internal')], context=context))
197
197
        # Find the locations already recorded in inventory lines
198
198
        line_locations_ids = set([l.location_id.id
199
 
                                  for l in i.inventory_line_id
200
 
                                  for i in inventories])
 
199
                                  for i in inventories
 
200
                                    for l in i.inventory_line_id])
201
201
        return list(inv_location_ids - line_locations_ids)
202
202
 
203
203
    def confirm_missing_locations(self, cr, uid, ids, context=None):