Files
odoo_source/addons/iap
Rémi Rahir 7484791497 [FIX] iap: Commit creation on dedicated cursor
The generic IAP flows forces us to commit the creation of a new record
to prevent the loss of his token once the system contacts iap.odoo.com.
Unfortunately, this operation can drastically alter any business flow if
it's not executed at the very begining or end of the flow.
Furthermore, it can be difficult to exactly pinpoint if this will affect
a flow (for instance, the point of sale is affected by iap because of
the module 'stock_sms' while the former doesn't depend on the later).

To avoid those issues, we isolate the account creation on a dedicated
cursor and load the values of the created record on the current cache.

closes odoo/odoo#47026

X-original-commit: 5307f47d975c3b3ebd87c7f7e2248802a1aa5be7
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2020-03-05 16:47:34 +00:00
..
…