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

« back to all changes in this revision

Viewing changes to base_sale_export_product/wizard/export_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:
55
55
        for shop in sale_shop_obj.browse(cr, uid, shop_ids, context=context):
56
56
            if not shop.referential_id:
57
57
                raise except_osv(_("User Error"),
58
 
                                _("The shop '%s' doesn't have any external "
59
 
                                "referential are you sure that it's an external sale shop? "
60
 
                                "If yes syncronize it before exporting product")%(shop.name,))
 
58
                                _("The shop '%s' doesn't have any external "
 
59
                                "referential are you sure that it's an external sale shop? "
 
60
                                "If yes syncronize it before exporting product")%(shop.name,))
61
61
            external_session = ExternalSession(shop.referential_id, shop)
62
62
            context = sale_shop_obj.init_context_before_exporting_resource(cr, uid, external_session, shop.id, 'product.product', context=context)
63
63
            none_exportable_product = set(product_ids) - set([product.id for product in shop.exportable_product_ids])