~magentoerpconnect-core-editors/magentoerpconnect/oerp6.1-stable

« back to all changes in this revision

Viewing changes to magentoerpconnect/product.py

  • Committer: Sébastien Beau
  • Date: 2013-06-06 17:53:04 UTC
  • mfrom: (685.1.4 magentoerpconnect)
  • Revision ID: sebastien.beau@akretion.com-20130606175304-r51kf087n169qrvv
[MERGE] merge fix from Stefan Rijnhart (Therp). Thank you for your work

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
        return defaults
120
120
 
121
121
    def multi_lang_read(self, cr, uid, external_session, ids, fields_to_read, langs, resources=None, use_multi_lang = True, context=None):
 
122
        if context == None:
 
123
            context = {}
 
124
        ctx = context.copy()
 
125
        # Always push full updates for categories due to broken
 
126
        # Magento category validation
 
127
        ctx['lang_full_read'] = True
122
128
        return super(product_category, self).multi_lang_read(cr, uid, external_session, ids, fields_to_read, langs,
123
129
                                                            resources=resources,
124
130
                                                            use_multi_lang = False,
125
 
                                                            context=context)
 
131
                                                            context=ctx)
126
132
 
127
133
    def ext_create(self, cr, uid, external_session, resources, mapping=None, mapping_id=None, context=None):
128
134
        ext_create_ids={}