Shopinvader Anonymous Partner
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
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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo_addon_shopinvader_anonymous_partner-18.0.1.0.0.2-py3-none-any.whl | Python 3 | none | any | Details for odoo_addon_shopinvader_anonymous_partner-18.0.1.0.0.2-py3-none-any.whl |
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
|
Security for odoo-addon-shopinvader-anonymous-partner 18.0.1.0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.