~ecommerce-addons-core-editors/e-commerce-addons/github-6.1

« back to all changes in this revision

Viewing changes to product_links_sync/product.py

  • Committer: Sébastien Beau
  • Date: 2013-06-17 09:36:28 UTC
  • mto: This revision was merged to the branch mainline in revision 286.
  • Revision ID: git-v1:872114dde6adecf3c1a3aa69e6c7e791c1a151a3
[FIX] sale_exceptions: fix help message, thanks to Stefan Rijnhart (Therp)

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
    def _export_one_product(self, cr, uid, external_session, product_id, options, context=None):
128
128
        res = super(product_export_wizard, self)._export_one_product(cr, uid, external_session, product_id, options, context=context)
129
129
        if 'export_link' in options:
130
 
            ctx = context.copy()
131
 
            ctx['export_product'] = 'link'
132
 
            self.pool.get('product.product')._export_one_resource(cr, uid, external_session, product_id, context=ctx)
 
130
            context['export_product'] = 'link'
 
131
            self.pool.get('product.product')._export_one_resource(cr, uid, external_session, product_id, context=context)
133
132
        return res
134
133
 
135
134
    def _get_all_options(self, cr, uid, context=None):
136
135
        res = super(product_export_wizard, self)._get_all_options(cr, uid, context=context)
137
136
        res.append('export_link')
138
137
        return res
 
138
 
 
139