- APPS
- Sales with Affiliates 19.0
| Lines of Code | 1288 |
| Technical name | viin_affiliate_sale |
| License | OPL-1 |
| Website | https://viindoo.com/apps/modules/19.0/viin_affiliate_sale |
| Read description for | v 13.0 v 14.0 v 15.0 v 16.0 v 17.0 v 18.0 |
| Required Apps | Invoicing (account) Discuss (mail) |
| Included Dependencies | Affiliate Management Viindoo Base Accounting Foundation |
| Extensions | Website Affiliate POS-Sale Affiliate Management Sale & Multi-level Affiliate Affiliate Loyalty Sale Management Affiliate Sale CRM Integration |
Which of these orders came from an affiliate
The affiliate code on the sales order, groupable and filterable - and an order count on every code.
Sales with Affiliates (technical name viin_affiliate_sale) is an Odoo 19.0 app for Odoo Community and Odoo Enterprise and Viindoo Cloud, built for sales manager, affiliate manager, finance, management.
At a Glance
The facts of Sales with Affiliates, version 0.3, in one place. Published by Viindoo.
How It Works
Three screens.
The orders
Grouped by affiliate, when you want them that way.
One order
The affiliate code sits on the order itself.
And from the other side
Each code counts the orders it brought in.
What You Get
Affiliate code on the sales order
Group and filter sales orders by affiliate
Order count on each affiliate code
Same orders, readable from both apps
No change to the sales flow
Installed as a bridge when both apps are present
More Screens
Everything below was taken on a database seeded with real business data, on this series - not a mock-up and not a screenshot from an older version.
Affiliates
What This App Does Not Do
Read this before you buy. Everything below is something the app deliberately leaves to another app or to you.
That stays in the affiliate app.
An order created without a code has none.
Standard grouping and pivots do the work.
Alone there is nothing to bridge.
Works Well With
Apps from the same stack, built to fit this one:
Who Should Use Sales with Affiliates?
Sales manager
Separates affiliate revenue from direct.
Affiliate manager
Clicks through from the code to the orders.
Finance
Reconciles commission against real orders.
Management
Knows what the channel is worth.
Frequently Asked Questions
What does Sales with Affiliates do?
The affiliate code on the sales order, groupable and filterable - and an order count on every code.
What does Sales with Affiliates not do?
It does not compute commission. That stays in the affiliate app. It does not attribute retroactively. An order created without a code has none. It adds no report of its own. Standard grouping and pivots do the work. It needs both apps. Alone there is nothing to bridge.
Who is Sales with Affiliates for?
Sales manager: Separates affiliate revenue from direct. Affiliate manager: Clicks through from the code to the orders. Finance: Reconciles commission against real orders. Management: Knows what the channel is worth.
Which Odoo version and editions does it support?
Odoo 19.0 - Odoo Community, Odoo Enterprise, Viindoo Cloud. Upgrades to a newer Odoo series are a separate purchase for that series.
What does it depend on?
It installs on top of: viin_affiliate, sale. Odoo installs them with it.
How do I set it up?
Three screens.
What works well with it?
Affiliate Management (viin_affiliate): The programme itself. Multi-level with Sales (viin_affiliate_multi_level_sale): Tree commission on orders. Sales extensions (viin_sale): The rest of the sales layer.
Can I try it before buying?
Yes - the Live Preview button at the top of this page opens the module's own screen on a working database.
How do I get support?
Write to apps.support@viindoo.com with your Odoo version and the technical name viin_affiliate_sale; pre-sales questions go to sales@viindoo.com.
See Sales with Affiliates in Action
Live demo: v19demo-int.viindoo.com/web#action=sale.action_orders
Need help with Sales with Affiliates?
For questions, implementation support or a custom feature, contact Viindoo.
Pre-Sales & Partnership
sales@viindoo.comUpgrades to a newer Odoo series are a separate purchase for that series.
All Viindoo apps: Viindoo Apps
Technical Requirement
Changes log
0.3 - Latest on the 19.0 line
- Affiliate grouping is available in the 19.0 sales search panel.
- Commission on the affiliate's own sales orders is set in the dated Commission Policy.
Note
Extends Affiliate Management - see its documentation: viin_affiliate.
Overview
This guide is for the salespeople who put an affiliate code on quotations and sales orders, and for the people who run the affiliate programme: the affiliate programme administrator, who decides what happens to the commission when the seller is the affiliate, and the affiliate managers and coordinators, who review the commissions of those orders.
Sales with Affiliates connects Affiliate Management with Sales. A quotation or sales order carries the affiliate code of the affiliate who brought the customer, a confirmed order creates the commission of that code, and the sales analysis can be grouped by affiliate. Two cases are treated apart, because the affiliate sells or buys the order: when the salesperson of the order is the affiliate of the code, the commission follows the commission policy When the Seller Is the Affiliate; when the customer of the order is the affiliate, the order follows the policy option Commission On Own Sales Orders.
| Role | What they do | Access right to assign |
|---|---|---|
| Salesperson | Puts the affiliate code on quotations and sales orders and confirms them. Reads on the order why the commission of an order they sold under their own code is held. | Sales / User: Own Documents Only or Sales / User: All Documents |
| Affiliate programme administrator | Chooses what happens when the seller is the affiliate, the sales teams whose sellers are still paid, and whether an affiliate earns commission on the orders they buy. | Affiliate / Administrator |
| Affiliate manager | Confirms or cancels the commissions held because the seller is the affiliate, for all affiliates. | Affiliate / User: All affiliates |
| Affiliate coordinator | Does the same for the affiliates they are responsible for. | Affiliate / User: Own affiliates |
Installation
- Navigate to Apps.
- Search with keyword viin_affiliate_sale.
- Press Install.
Instruction
Instruction video: Sales with Affiliates
Select the affiliate code on the sales order
For salespeople. After installing the application, you select the affiliate code on a quotation through the following steps:
- Step 1: The affiliate team creates the affiliate codes in Affiliate ‣ Affiliate ‣ Affiliate Codes ‣ New. After the partner is chosen and the code is saved, the system generates the code of the affiliate (see the viin_affiliate documentation).
- Step 2: Go to Affiliate ‣ Sale Orders ‣ Quotations ‣ New, or to Sales ‣ Orders ‣ Quotations ‣ New when the Sales app is installed. On the quotation, select the code of the relevant affiliate in the AffCode field. The code can be chosen or changed while the order is a quotation and is locked once the order is confirmed.
- Step 3: Click Save, then Confirm. Back on the affiliate code, the Referred Sale Orders button shows how many orders carry the code. Click it to list them; the list shows the confirmed sales orders, and removing the Sales Orders filter adds the quotations.
When the seller of the order is the affiliate
For salespeople, affiliate managers and coordinators, and the affiliate programme administrator.
A salesperson can be an affiliate too and can put their own affiliate code on an order they sell. The seller of a sales order is its Salesperson, shown in the Sales section of the Other Info tab of the order. The order is an own sale of the seller when the code on the order is the code of that salesperson.
What happens to the commission of an own sale is set by When the Seller Is the Affiliate in the commission policy, which the viin_affiliate documentation describes with the other policy values. The value applies when the order is confirmed:
- Pay: the commission is paid like any other.
- Hold for review: the commission is created in Draft with a note, and an affiliate user confirms or cancels it.
- Do not pay: the commission is recorded as Cancelled with a note. An affiliate user can set it to Draft and confirm it to pay it.
The sale itself is never blocked: the order is confirmed and invoiced as usual, and only the commission waits. The check reads the Salesperson recorded on the order when it is confirmed, and every change of the Salesperson is recorded in the chatter of the order. A salesperson who sells under a colleague's name, or with a code held by another contact of the same person, is not detected.
What the order and the commission show
With Hold for review, once the salesperson confirms the order:
The chatter of the order gives the reason in a note: The seller of this order is its affiliate: the commission is kept in Draft until an affiliate user confirms it. Affiliate users also see a Commission button on the order that opens the commission.
The commission is Draft, its Own Sale field shows Seller is the affiliate, and its chatter carries a note: The seller of this order is the affiliate: the commission is kept in Draft for review. An affiliate user confirms it in the commission list, or cancels it.
With Do not pay, the commission is created Cancelled with the same Own Sale mark, and the notes say that it is recorded cancelled. Lines added to the order after its confirmation, or a product changed, update the commission and keep a held commission in Draft.
Confirm or cancel a held commission
For affiliate managers and coordinators. The commissions of own sales are in Affiliate ‣ Affiliate ‣ Commission, with the filter Own sales, and in the Commission button of the order.
- Open the held commission and press Confirm to pay it, or Cancel to refuse it.
- To confirm several held commissions at once, tick them in the commission list and press Confirm in the header of the list; the viin_affiliate documentation describes this review.
- To pay a commission recorded as not paid (Do not pay), open it, press Set to Draft, then Confirm.
An affiliate user who is the seller can confirm their own held commission: nothing refuses it, and the tracked status in the chatter of the commission shows who confirmed it.
Keep paying the sellers of some sales teams
For the affiliate programme administrator. When When the Seller Is the Affiliate is Hold for review or Do not pay, the commission policy also shows Still Pay Sellers in These Sales Teams. The orders of the sales teams listed there pay the seller who is the affiliate as usual, whatever the value is: their commission is confirmed and keeps its Own Sale mark. The orders of the other sales teams, and the orders without a sales team, follow the value. The sales team of an order is shown in the Sales section of its Other Info tab.
- Go to Affiliate ‣ Configuration ‣ Commission Policies, open the policy in force and press Schedule Policy Change.
- Choose Hold for review or Do not pay in When the Seller Is the Affiliate.
- In Still Pay Sellers in These Sales Teams, choose the sales teams whose sellers are still paid.
- Save the policy. It applies from its Effective From date and time.
Like the other values of the policy, the sales teams are locked once commissions use the policy: a change is a new policy, which applies from its own date and time, and the commissions created earlier keep the policy they were created with.
When the customer of the order is the affiliate
For salespeople and the affiliate programme administrator. An affiliate can buy for themselves with their own code. The Commission On Own Sales Orders option of the commission policy, in its Sales section, decides what happens when the customer of the order is the affiliate of the code on the order:
- Off, which is the default: the affiliate code is removed from the order when it is confirmed and no commission is created. A note in the chatter of the order gives the reason: The customer of this order is its affiliate, and the policy does not pay commission on own sales orders: the affiliate code is removed.
- On: the commission is created and paid like any other, and its Own Sale field shows Customer is the affiliate.
When the affiliate is both the customer and the seller of the order, this rule applies, not When the Seller Is the Affiliate.
Sales report by affiliate code
To view sales reports by affiliate criteria, go to Sales ‣ Reporting ‣ Sales (Sales app, for users with Sales / Administrator). Users who also hold an Affiliate access right find Affiliate in the Group By options: use it, or the filters, to show the sales orders and revenue of each affiliate.
This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file).
You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one).
It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software.
The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.