shopinvader / odoo-shopinvader

Odoo Modules. Sorry Magento, Shopinvader is coming
GNU Affero General Public License v3.0
121 stars 105 forks source link

[16.0] [IMP] shopinvader anonymous partner promotion #1570

Open paradoxxxzero opened 1 month ago

paradoxxxzero commented 1 month ago

This PR removes the cart transfer from shopinvader_api_signin_jwt (and its shopinvader_sale_cart dependency) and instead create a new _promote_anonymous_partner function that is now called by shopinvader_fastapi_auth_* modules when the two partner coexist.

A new shopinvader_sale_cart_anonymous_partner glue module handles the cart transfer on promotion.

This slightly changes the time when the cart is transfered from the login to the next request (which should be the cart GET anyway)

FYI @sebastienbeau