Cooperator Sponsorship
Integrate sponsored partners to the cooperative management.
Sponsees do not need to aport capital share to become a cooperative partner if a cooperative member sponsors them.
Table of contents
Configuration
On the company, set a default maximum sponsees number per partner.
Usage
Sponsorship relation
Cooperative members can sponsor new partners, being linked by a one2many relation, being the maximum number of sponsees customizable by company. They also have a sponsorship_hash, a code to identify them as sponsors, along with their vat number, through the API.
A wizard allows every sponsee to aport capital share and become members themselves
Sponsorship API
Variables to fill in these example curls:
API_KEY: authorized key from the odoo server’s API-KEY
ODOO_URL: target ODOO server’s URL
Check partner sponsorship data
curl -X GET \
-H "accept: application/json" \
-H "api-key: $API_KEY" \
-H "Content-Type: application/json" \
"$ODOO_URL/api/partner/sponsees?ref=1234"
Where ref is the partner’s ref code. The returned data includes:
sponsorship_code: code hash
sponsees_max: Maximum number of sponsees per partner
sponsees_number: Number of partner’s sponsees
sponsees: List of names and surnames of partner’s sponsees
Check if partner can sponsor
curl -X GET \
-H "accept: application/json" \
-H "api-key: $API_KEY" \
-H "Content-Type: application/json" \
"$ODOO_URL/api/partner/check_sponsor?vat=1234567A&sponsor_code=888B"
Required input params:
vat: partner’s vat
sponsor_code: Maximum number of sponsees per partner
Retured data:
result: “allowed” or “not_allowed”
message: “ok” or explanation for now allowed result
The usage is full integrated with the ORM of Odoo using listeners.
More info about the listeners: https://odoo-connector.com/api/api_components.html#listeners
Contributors
Som Connexió SCCL <https://somconnexio.coop/>
Gerard Funonsas gerard.funosas@somconnexio.coop
Borja Gimeno borja.gimeno@somconnexio.coop
Coopdevs Treball SCCL <https://coopdevs.coop/>
Daniel Palomar daniel.palomar@coopdevs.org
Cesar Lopez cesar.lopez@coopdevs.org
Carla Berenguer carla.berenguer@coopdevs.org
Metadata
Release files for odoo-addon-cooperator-sponsorship 16.0.1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| odoo_addon_cooperator_sponsorship-16.0.1.1.0.tar.gz | 13.9 kB | Without provenance | Details for odoo_addon_cooperator_sponsorship-16.0.1.1.0.tar.gz |
Release files / odoo_addon_cooperator_sponsorship-16.0.1.1.0.tar.gz
| Download URL | odoo_addon_cooperator_sponsorship-16.0.1.1.0.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21f8a48f3e0d573a620975f2d1a3504bad9583cf1e2d223b49170498a95e674b
|
|
BLAKE2b-256 checksum How to use checksums |
40ffefdecacab332ca05883251b4e61d34eca75d98a35d71a78b2a3fab666c2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Security for odoo-addon-cooperator-sponsorship 16.0.1.1.0
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.