~camptocamp/magentoerpconnect/oerp6.1-oldstable-fix-cron-method-2013-03-13

« back to all changes in this revision

Viewing changes to magentoerpconnect/sale.py

  • Committer: Yannick Vaucher
  • Date: 2013-03-13 16:53:44 UTC
  • Revision ID: yannick.vaucher@camptocamp.com-20130313165344-n8eydi8h15bnuquq
[FIX] magentoerpconnect - method used by cron job to launch partner import

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
        group_ids = self.search(cr, uid, [], context=context)
169
169
 
170
170
        if group_ids:
171
 
            shop_groups = self.browse(cr, uid, ids, context=context)
 
171
            shop_groups = self.browse(cr, uid, group_ids, context=context)
172
172
 
173
173
            for group in shop_groups:
174
174
                self._import_partners(cr, uid, group, context=context)