summaryrefslogtreecommitdiff
path: root/doc/reference/testing.rst
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2019-11-13 13:40:32 +0000
committerDavid Beguin <dbe@odoo.com>2019-12-03 08:34:32 +0000
commit9830d924e9b68ca79cd2fa81ee890db3e300c50b (patch)
tree63895a04b3429da3b75e23fc8ced3b1274b6b1c5 /doc/reference/testing.rst
parente7fba2e8a1bfb0d37c132f0c3b8726663493bb34 (diff)
[FIX] website: fix authentication of archived visitor
If a visitor logs in (and has a visitor_id in his cookie), the partner will be linked to the visitor. If, after 1 week, the visitor tries to connect again with a different session (or another visitor_id in cookies), the authenticate will crash because * _cron_archive_visitors applies on visitor inactive since at least a week * there can be only one visitor per partner (sql constraint) * the visitor linked to the partner is not retrieved (because archived) and we try to link the partner to a new visitor. Further than that, if the visitor is archived and the linked partner wants to login again with a new visitor_id, we should * reactivate the previous visitor, * copy history from newest to previous one, * delete the newest one Note that last two points were already done before this commit. Task ID: 2120464 PR #40199 Fixes #40077 Fixes #40301 closes odoo/odoo#41273 Original-signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> X-original-commit: 53a6bed3b5c1ae09be490254ed09f18acbb970c4 Signed-off-by: David Beguin <dbeguin@users.noreply.github.com>
Diffstat (limited to 'doc/reference/testing.rst')
0 files changed, 0 insertions, 0 deletions