Skip to main content
Odoo Community Association

Shopinvader Anonymous Partner

Beta License: LGPL-3 shopinvader/odoo-shopinvader

This module allows the creation of temporary partners for anonymous visitors, and set a cookie to establish a session for these partners.

Table of contents

Usage

The following model methods are added in a helper model:

_create_anonymous_partner__cookie(response)

Create a new anonymous partner and set the shopinvader-anonymous-partner cookie. Return the newly created partner record.

response is typically the http response, it must have a set_cookie() method. It is known to work with odoo.http.request.future_response and FastAPI Response objects.

_get_anonymous_partner__cookie(cookies)

Return the partner record corresponding to the shopinvader-anonymous-partner cookie in the current request, if any. Returns an empty record set if the cookie is not set or if the corresponding partner was not found.

cookies is the cookies dictionary from the http request.

Note the record sets returned by these methods are in a sudo’ed environment, so handle with care.

Known issues / Roadmap

  • some cron to remove old anonymous partners

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • ACSONE SA/NV

Maintainers

This module is part of the shopinvader/odoo-shopinvader project on GitHub.

You are welcome to contribute.

Metadata

Release files for odoo-addon-shopinvader-anonymous-partner 18.0.1.0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-shopinvader-anonymous-partner 18.0.1.0.0.2
File Interpreter ABI Platform
odoo_addon_shopinvader_anonymous_partner-18.0.1.0.0.2-py3-none-any.whl Python 3 none any Details

Release files / odoo_addon_shopinvader_anonymous_partner-18.0.1.0.0.2-py3-none-any.whl

Download URL odoo_addon_shopinvader_anonymous_partner-18.0.1.0.0.2-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d151dc5269ed4779fe11313ccf4b99651bf9880560df3eecb6a7473dad445295
BLAKE2b-256 checksum
How to use checksums
526a4040e3f1465b9c0a3b12af9d78b254e77cf14f902068c56940478c35f990
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

18.0.1.0.0.2 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page