Wait for parent transaction to complete by watching if it's parent cursor
has been closed or not. For batch transaction (ex: confirming 50 invoices
at once using 'Confirm Draft Invoices' wizard) that might take longer
that 3 seconds! and we end up sending edi mail with old record values.
bzr revid: xal@openerp.com-
20130228153034-6ttt05qzwoo02ah4