lp://qastaging/~jgrandguillaume-c2c/magentoerpconnect/magentoerpconnect_optimized

Created by Joël Grand-Guillaume @ camptocamp and last modified

I started to work harder with the connector some weeks ago and already contribute to some little improvements. The problem I address here
concern the people who have lots of attributes in their Magento eshop.

When having more than 100 attributes, OpenERP start to be really slow with everything regarding the product (search form, list, ...).

So I overwrite the read method to avoid reading all unneeded fields. By default, I only read the "normal" product fields unless I found "set:ID" in the context.
In that last case, I only read the fields that composed the set. This work perfectly with every standard feature (browsing, searching, export catalog, etc..), but
could bring some trouble using the magento attributes in some reports. This could easily be adapted be passing the set:ID in the context.

After a phone call with Raphaël, as discussed, I post my patch here. I hope this will be useful for other people too. Apparently this won't be
included in the core for the above reason. So I will also maintain a branch here with the improvements:

Get this branch:
bzr branch lp://qastaging/~jgrandguillaume-c2c/magentoerpconnect/magentoerpconnect_optimized
Only Joël Grand-Guillaume @ camptocamp can upload to this branch. If you are Joël Grand-Guillaume @ camptocamp please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Recent revisions

356. By Joël Grand-Guillaume @ camptocamp

[MRG] Fix the dupplication of product with the performance enhancement. Add the set_id in context if not present, to allow product dupplication.

355. By Joël Grand-Guillaume @ camptocamp

[IMP] Add the possibility to open a product in 'product set view' from any product or list of product unless they are all from the same set. Also add the set in list view to be more 'userfriendly'

354. By Joël Grand-Guillaume @ camptocamp

[IMP] Add a better handling of product attributes read. Only read needed fields, no more, avoiding to parse hundreds of them if not needed. Based on 'set' stored in context or not.

353. By Vianney - www.akretion.com.br

[FIX] bug of last commit

352. By Vianney - www.akretion.com.br

[IMP] Do not import cancelled sale orders from magento as their status won't change and thez are useless in openERP (backport from v6)

351. By Vianney - www.akretion.com.br

[FIX] backport of fix from version 6 : bug filed n° 620483 problem if customer_taxvat is None

350. By Vianney - www.akretion.com.br

[IMP] backport of the revision 356 of verion 6 : [IMP] Mappings of first and last name and for future update of partners

349. By Vianney - www.akretion.com.br

[IMP] Backport of new method to export categories only if one has been changed

348. By Vianney - www.akretion.com.br

[FIX] back port bug in mapping of carrier id

347. By Sébastien BEAU - http://www.akretion.com

[FIX] order_increment_id don't exist anymore in magento, trying to re-attach complete order (an order validaded manually on magento)is to complexx now. Normaly you don't have to create a picking manually in magento so the function is removed

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp://qastaging/magentoerpconnect/oerp5.0-stable
This branch contains Public information 
Everyone can see this information.