Affiliate Program
website_sale_affiliate · OCA/e-commerce
Health
67/100
fair
-
Security25/25No findings
-
Activity25/25Last human commit 4 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.79 MB
Module directory on disk
Code analysis
2 migration notes
3 models
7 views
2 HTTP endpoints
Migration considerations
sale_affiliate_request_view_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourcesale_affiliate_view_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 7
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
sale_affiliate_request_view_form |
Affiliate Request | sale.affiliate.request | form | New |
sale_affiliate_request_view_search |
Affiliate Requests Search | sale.affiliate.request | search | New |
sale_affiliate_request_view_tree |
Affiliate Requests | sale.affiliate.request | tree | New |
sale_affiliate_view_form |
Affiliate | sale.affiliate | form | New |
sale_affiliate_view_search |
Affiliates Search | sale.affiliate | search | New |
sale_affiliate_view_tree |
Affiliates | sale.affiliate | tree | New |
sale_order_view_form |
Sale Order | sale.order | form | Inherits sale.view_order_form |
HTTP endpoints 2
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
| (inherited route override) | WebsiteSale.product |
inherited | http | ALL | sudo |
| (inherited route override) | WebsiteSale.shop |
inherited | http | ALL | sudo |
Models touched 3
New fields (10)
-
company_idMany2one → res.companyhelp='Company for affiliation'required=Truestring='Company' args: 'res.company' -
conversion_rateFloatcompute='_compute_conversion_rate'digits=(12, 4)help='Conversion count / Request count' -
dateDatedefault=fields.Date.context_today -
nameCharrequired=True -
partner_idMany2one → res.partnerhelp='Partner associated with affiliation'string='Partner' args: 'res.partner' -
request_idsOne2many → sale.affiliate.requesthelp='Requests generated by the affiliate'string='Requests' args: 'sale.affiliate.request', 'affiliate_id' -
sales_per_requestFloatcompute='_compute_sales_per_request'digits=(12, 4)help='Sale count / Request count'string='Average Sales per Request' -
sequence_idMany2one → ir.sequencedefault=<expr>help='Sequence to use for affiliate request naming'required=Truestring='Sequence' args: 'ir.sequence' -
valid_hoursIntegerdefault=24help='If the request is more than this many hours old, it will not be counted as a qualified conversion if a sale takes place. Use negative numbers to indicate infinity.'required=True -
valid_salesIntegerdefault=1help='If the request is already associated with this many sales, it will not be counted as a qualified conversion in the event of a new sale. Use negative numbers to indicate infinity.'required=True
-
find_from_kwargs(self, **kwargs)@api.modelFind affiliate record based on kwargs -
get_request(self, **kwargs)
New fields (8)
-
accept_languageChardefault=<expr>help='Request session accept language'required=True -
affiliate_idMany2one → sale.affiliatehelp='Affiliate that referred request'required=Truestring='Affiliate' args: 'sale.affiliate' -
dateDatetimedefault=<expr>help='Date and time of initial request'required=Truestring='Start Date' -
ipChardefault=<expr>required=Truestring='Client IP' -
nameCharhelp='Name corresponds with the "aff_key" value of the url used, if present. Otherwise, name is determined by the sequence selected in the parent affiliate record'index=Truerequired=True -
referrerChardefault=<expr>help='Request session referrer header' -
sale_idsOne2many → sale.orderhelp='Qualified conversions generated as a result of affiliate request'string='Sales' args: 'sale.order', 'affiliate_request_id' -
user_agentChardefault=<expr>help='Request session user agent'required=True
-
current_qualified(self)@api.model
New fields (1)
-
affiliate_request_idMany2one → sale.affiliate.requesthelp='Affiliate request associated with sale order'string='Affiliate request' args: 'sale.affiliate.request'
-
create(self, vals)@api.model
Loading…
Loading…