TIP: You can type at any time to perform a new search.
Affiliate Program
website_sale_affiliate · OCA/e-commerce
- Repository
- OCA/e-commerce · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- E-Commerce
- Folder size
- 0.79 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/e-commerce
- Last tracking update
- 2026-08-10 11:01:50
- Authors
- Odoo Community Association (OCA), LasLabs
- Maintainers
- Odoo Community Association (OCA), LasLabs
- Committers
- oca-ci, Anmol Garg
Code Analysis ⓘ
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 | |
| (inherited route override) | WebsiteSale.shop |
inherited | http | ALL |
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…
- Status
- Open migration PR — not merged yet for this version
- CI status
- no CI data
- Open since
- 1011 days ago
- Last activity
- 878 days ago
- Repository
- OCA/e-commerce
- Pull request
- [14.0][MIG] website_sale_affiliate: Migration to version 14.0 (#874)
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 83 days ago
- Last activity
- 10 days ago
- Repository
- OCA/e-commerce
- Pull request
- [18.0][MIG] website_sale_affiliate migration from 16.0 to 18.0 (#1228)