From ba7ed7e44fd223ea4b18274a592ca7b4a53d9759 Mon Sep 17 00:00:00 2001 From: Benjamin Willig Date: Mon, 23 Sep 2024 18:58:50 +0200 Subject: [PATCH] [FIX] shopinvader_anonymous_partner: auth cookie reseted when reseting shopinvader-anonymous-partner cookie, a new set-cookie option is set inside the response. However, it seems that only the last operation is received by the client so the auth cookie is lost. As the operation cookie has already been set earlier, we can avoid reseting shopinvader-anonymous-partner-cookie --- shopinvader_anonymous_partner/models/res_partner.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/shopinvader_anonymous_partner/models/res_partner.py b/shopinvader_anonymous_partner/models/res_partner.py index 4bebb32e25..43e07a8700 100644 --- a/shopinvader_anonymous_partner/models/res_partner.py +++ b/shopinvader_anonymous_partner/models/res_partner.py @@ -80,11 +80,6 @@ def _delete_anonymous_partner__cookie(self, cookies: Cookies, response: Response Delete anonymous partner and cookie """ self._get_anonymous_partner__cookie(cookies).unlink() - response.set_cookie( - key=COOKIE_NAME, - max_age=0, - expires=0, - ) @api.model def _get_anonymous_partner__token(self, token: str):