Skip to main content

Manage anonymous partners with a cookie.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_shopinvader_anonymous_partner-16.0.1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_shopinvader_anonymous_partner-16.0.1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 057b0b0e3263f81f59e2022b3fa9a86fa90e17c2dbdb8457b19325237c675eab
MD5 50b425c8c685c29f8fcd8886e29f2c52
BLAKE2b-256 13656816b48829429f74201ed49adad911349adad58f4e60f3d6e0a4850c186a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page