Merge lp:~camptocamp/magentoerpconnect/oerp61-oldstable-import-partners-pagination-2013-02-12 into lp:magentoerpconnect/oerp6.1-oldstable
Proposed by
Yannick Vaucher @ Camptocamp
Status: | Merged |
---|---|
Merged at revision: | 666 |
Proposed branch: | lp:~camptocamp/magentoerpconnect/oerp61-oldstable-import-partners-pagination-2013-02-12 |
Merge into: | lp:magentoerpconnect/oerp6.1-oldstable |
Diff against target: |
62 lines (+24/-5) 1 file modified
magentoerpconnect/sale.py (+24/-5) |
To merge this branch: | bzr merge lp:~camptocamp/magentoerpconnect/oerp61-oldstable-import-partners-pagination-2013-02-12 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guewen Baconnier @ Camptocamp | Approve | ||
Alexandre Fayolle - camptocamp | code review, no test | Approve | |
Review via email: mp+147986@code.launchpad.net |
Description of the change
Improve partner import using ol_customer.search before using customer.list in order to paginate the request.
To post a comment you must log in.
l. 28: use xrange instead of range, and you can probably avoid the creation of this list by iterating directly on the xrange object in the for loop line 31.