-
Committer:
Guewen Baconnier @ Camptocamp
-
Date:
2012-10-18 15:04:51 UTC
-
Revision ID:
guewen.baconnier@camptocamp.com-20121018150451-phzd1fxryeatzia5
[FIX] issue lp:1068174 records created on magento during an sub-export are not visible in the export
When a new transaction is opened for an export and this export have sub-exports (exports in the mappings for example),
the sub-exports must not open new transactions, otherwise, the transaction of the main export will not be able
to read the data written by the sub-exports (external ids created principally).
This implementation is sensible because the `export_no_new_cr` has to be propagated through the context,
and if the context chain is broken, it will open a new transaction regardless. It would maybe be better in
the other way, no new cr by default, and explicitely ask for a new cr on top level exports, but it would require
to search and change all the top level export, and do the same for the imports to have a consistant logic between them.