~openerp-chinese-team/magentoerpconnect/guest-order-bug-fix

« back to all changes in this revision

Viewing changes to magentoerpconnect/product.py

  • Committer: sebastien beau
  • Date: 2012-08-14 15:46:07 UTC
  • Revision ID: sebastien.beau@akretion.com.br-20120814154607-l2ow0bjqerxde380
[FIX] magentoerpconnect : fix category export, and add ean as attributs to not create

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
        defaults.update({'magento_exportable': True})
121
121
        return defaults
122
122
 
123
 
    def multi_lang_read(self, cr, uid, ids, fields_to_read, langs, resources=None, use_multi_lang = True, context=None):
124
 
        return super(product_category, self).multi_lang_read(cr, uid, ids, fields_to_read, langs,
 
123
    def multi_lang_read(self, cr, uid, external_session, ids, fields_to_read, langs, resources=None, use_multi_lang = True, context=None):
 
124
        return super(product_category, self).multi_lang_read(cr, uid, external_session, ids, fields_to_read, langs,
125
125
                                                            resources=resources,
126
126
                                                            use_multi_lang = False,
127
127
                                                            context=context)
311
311
        'category_ids',
312
312
        'price',
313
313
        'cost',
314
 
        'set'
 
314
        'set',
 
315
        'ean',
315
316
    ]
316
317
 
317
318
    _translatable_default_codes = [