Merge lp:~camptocamp/openerp-connector-magento/7.0-next-release-missing-records-1322452 into lp:~openerp-connector-core-editors/openerp-connector-magento/7.0-next-release
Proposed by
Guewen Baconnier @ Camptocamp
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 990 | ||||
Proposed branch: | lp:~camptocamp/openerp-connector-magento/7.0-next-release-missing-records-1322452 | ||||
Merge into: | lp:~openerp-connector-core-editors/openerp-connector-magento/7.0-next-release | ||||
Diff against target: |
149 lines (+61/-10) 2 files modified
magentoerpconnect/magento_model.py (+44/-9) magentoerpconnect/sale.py (+17/-1) |
||||
To merge this branch: | bzr merge lp:~camptocamp/openerp-connector-magento/7.0-next-release-missing-records-1322452 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Connector Core Editors | Pending | ||
Review via email: mp+220910@code.launchpad.net |
Commit message
Introduce a 30 seconds buffer between 2 batches of imports to avoid to miss records.
The 'created_at' date on Magento is set at the beginning of a transaction, and the transaction may be committed seconds after. The buffer will allow to include these records in the imports.
Description of the change
Fixes lp:1322452
To post a comment you must log in.
Hi Guewen,
You tell line 44:
# but this is not a big deal because they will be skipped when
45 + # the last `sync_date` is the same
few lines later the condition is not with sync_date but with :
144 + if self.binder. to_openerp( self.magento_ id):
145 + return _('Already imported')
sorry to see this only now
good solution i think.
Thanks
PS : "Magento define the create date at the begining of the transaction" : LOL, Magento is a ... app, no word to qualify it.