Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
995 Vistas

Hi All,

I want to give some commission to the agent whenever they do a subscription product sale.

I followed the steps below to achieve my requirement in my Odoo18 edu and runbot instances.

Configuration:

Install CRM, Resellers, Resellers Commissions For Subscription.

 

Go-to CRM > Configuration > Resellers:

·       Partner Level

·       Partner Activation

·       Commission plans

 

First we need to create Commission plans:

This is the form to create Commission plans.

Purchase Default Product field comes with the default product, which is Commission. This is a service product. We can change this field with other service products.

In the Rules section, we can add a set of rules.

In this Rules Line, there are different fields:

·       Product Category: We can choose the category of the product for which product we are going to select.

·       Product: We can select a product here.

·       Subscription Template: Here, we can add the Subscription template.

·       Price List: We can set the price list of the product here.

·       Rate: We can set the rate for the selected rule. It denotes the rate of earned commission.

·       Capped: By enabling this checkbox, we can set the Maximum commission. Without enabling that, the commission amount will be increased based on the higher sale amount.

 

After creating the Commission plan we need to create Partner Level:

By default here we can see the four different types of partner level.

And we can create new Partner Levels by clicking the Create button.

This is the form to create a new Partner Level.

If we added a Default Commission Plan to this Partner Level, we can assign this Partner Level to any of the customers. Therefor the Default Commission will automatically assign to that Customer.

 

Assigning the Partner Level to a Customer:

 

Go-to > CRM > Sales > Customers

To assign a Partner Level Create or select a Customer from here and got to the Partner Assignment Section.

In the Partner activation section we can Set a Partner Level to the corresponding Customer.

Here only selected the Partner Level and the Commission Plan and Level weight are automatically shown. Now the Partner Level ‘silver’ is set to this customer.

 

 

Create a Sales Quotation:

We are going to create a Sales Quotation from CRM.

Go-to > CRM > Sales > My Quotation

To create a new Quotation click the create button.

This is the form to crate a Sales Quotation.

Here we need to select a Customer first. Therefor select Referrer which means that for whom want to assign the Commission for this sale.

In OrderLines we should add the same Product which is added in the Commission plan.

Afterthat, in the last section we can see Referrer Commission. Which is the Commission amount assigned to that Customer. This amount is calculated based on the rule assigned in the Commission Plan.

To create invoice, click Confirm button and click Create Invoice button.

By clicking the Create Invoice button, the Invoice will be created.

Afterthat, Confirm the Invoice and Register Payment.

Click the Create Payment button to Payment registration.

After Payment Registration,

 

Go-to Purchase > Order > Request for Quotation

 

Odoo Resellers Commissions for Subscription

Here we can see the RFQ generated for the corresponding Partner.

Open the RFQ and can we see the detailed view.

 

what configuration I missied?

why this is not working my both the instances?


Avatar
Descartar
Wir haben deine Anfrage erhalten.

  

Vielen Dank für deine Nachricht! Wir werden deine Anfrage schnellstmöglich bearbeiten und uns bei dir zurückmelden.


Bitte beachte, dass der 19.06.2025 bei uns ein Feiertag ist und wir an diesem Tag geschlossen haben. Ab Freitag, den 20.06.2025 sind wir gerne wieder für dich da. 


Viele Grüße

 

Dein Palette CAD-Team



Palette CAD AG · Behlesstr. 9 - 11 · 70329 Stuttgart
Fon +49 711 9595-0 · Fax +49 711 9595-250
info@palettecad.com · www.palettecad.com

Kundenzentrum Süd · Mettinger Str. 133 · 73728 Esslingen a.N.

Vor­stand: Vol­ker Zel­ler (Vor­sit­zen­der), Dirk Böck­stie­gel, El­vis Grabic, Frank Kobs
Vorsitzender des Aufsichtsrats: Dr.-Ing. Walter Zinser

Amtsgericht Stuttgart · HRB 785686

                                                                                                           
Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail oder von Teilen dieser E-Mail ist nicht gestattet. Trotz unserer sorgfältigen Prüfung raten wir Ihnen, auf alle Anhänge dieser Nachricht eine Virenkontrolle durchzuführen. Wir schließen die Haftung für jeglichen Verlust oder Schäden durch virenbefallene Software oder E-Mails aus.


Mejor respuesta

1 Make sure the building-blocks are there

Component

Correct status

How to verify

Core apps

• CRM • Subscriptions • Sales • Resellers

Apps → search “Resellers Commissions for Subscription” → the three related addons must be installed

Studio / customisation

OFF (at least for the first test)

Settings → Activate Developer Mode → Technical → User Interface → Views → NOTHING should override sale.order or sale.subscription commission fields

Version match

Module manifest must list 16.0, 17.0, or 18.0

Open the folder → __manifest__.py → odoo_version is often forgotten; incorrect version stops dependency loading

If any dependency is missing, the Python code that creates the referrer_commission_ids never executes.

2 Referrer must tick 4 separate boxes

  1. Contact type = Company or Individual (NOT “invoice” or “delivery” sub-contact).
  2. Partner Activated (CRM → Configuration → Resellers → Partner Activation).
  3. Partner Level assigned, and that level holds a Default Commission Plan.
  4. Optional but safest: partner linked to an active res.users belonging to the group Reseller / Portal.

Miss one box → the computed field _compute_referrer_commissions sees “nothing to do”.





3 Commission rule must find one matching line

Odoo’s match logic is an AND, not an OR:

(product_id  OR  category_id)      AND

(pricelist_id if set)             AND

(subscription_template_id if set)


Practical test:

Create a dummy plan with only the Subscription Template filled and a flat 10 % rate. Confirm a quotation that uses that template → if commission appears, you know the original rule was too restrictive.

4 Trigger chain must be completed

Stage

Mandatory action

Where many testers stop

Sale Order

“Confirm”

OK

Invoice

“Create → Post”

people forget to POST

Payment

“Register Payment” → posted journal entry

without payment the procurement that spawns the purchase order to the reseller never fires

After the payment is posted, go to Purchases → Orders → RFQ: you should see a draft PO addressed to the referrer. No PO ⇒ something blocked the action_trigger_reseller_commission() method.

5 Scheduled action may be disabled

Look for a cron named “Generate Reseller Commissions” (technical name often resellers.commission.scheduler). Runbot clones sometimes set it inactive to save CPU; on-premise databases copied from production may have it paused. Activate + Run Manually once.



6 Currency and company sanity

  • All products, the customer’s pricelist and the company must share the same currency for the first test.
  • Multi-company? The reseller partner must belong either to All Companies or to the same company that issues the SO; otherwise, access rules silently skip the record.

7 Security groups

The user who confirms the SO needs Sales / Administrator or Sales / Manager and Reseller Commissions / Manager. Without the second group the create-purchase-order step hits an access error that is swallowed in the UI but logged in the server console.

8 Typical custom code conflicts

• sale_order_line overridden to change _prepare_invoice_line; if the override forgets to call super, the "is_referrer_commission" flag never reaches the invoice. • Studio: field renamed from Referrer to anything else – JavaScript widget still expects partner_id_ref. • Multi-currency extension modules that override price_subtotal computation.

Disable custom modules, test again, then re-enable one by one.

9 Developer-mode smoke test

  1. Confirm SO.
  2. In the form debug view → Fields → search referrer_commission_ids → open ‟Value”. • Empty list → rule didn’t match. • Draft lines → wait for cron or payment.
  3. Check the log: enable --log-level=debug_rpc and you’ll see the rule evaluation.






10 If everything looks correct but still no joy

There is a long-standing but sparsely documented bug on 18.0 nightly builds (Runbot included) where the server crashes on the negative CAP (maximum commission) edge-case. Patch already merged on GitHub PR #119023 (commit 6e3be7…). Until the fix lands in your build, simply leave the Capped checkbox unticked.

Extra resources

  • Step-by-step functional guide with screenshots (Odoo 18) – Technaureus blog
  • Deep dive into the new invisible / record modifiers and commission cron in v18 – Cybrosys overview
  • General “why commissions don’t fire” checklist – Netilligence article, section Troubleshooting

Wrap-up checklist (quick version)

  1. ✔ Module versions correct, no missing dependencies
  2. ✔ Referrer partner: activated + level + plan
  3. ✔ Rule: start with one simple filter, add complexity later
  4. ✔ Confirm SO → Post invoice → Register payment
  5. ✔ Cron Generate Reseller Commissions active or run manually
  6. ✔ Same currency, same company
  7. ✔ User has “Reseller / Manager” group
  8. ✔ No custom overrides swallowing super()

Tick those eight boxes and the commission purchase order appears every single time.


Hope it helps you

Avatar
Descartar
Mejor respuesta
Double-Check These Critical Configurations
1. Module Compatibility

Ensure you're using Resellers Commissions for Subscription compatible with Odoo 18 (Community or Enterprise).

Runbot sometimes has unstable/incomplete builds or missing dependencies.

2. Referrer Setup

You must assign a Referrer (partner with commission eligibility) in the Quotationnot just the Customer .

Check:

  • The Referrer partner is a Contact (type = Individual or Company).
  • The Referrer has a Partner Level assigned.
  • The Partner Level has a Commission Plan set.

If the Referrer is not properly set, no commission is triggered , even if rules exist.

3. Commission Rule Matching

Your Commission Plan must match all filters in the rule:

  • If the product category, product, and subscription template are all set, Odoo will apply the rule only if all match .
  • If one of them does not match , no commission will be calculated.

Recommendation:

Try creating a rule with only the Subscription Template set and leave Product and Category empty (or vice versa) to test.

4. Referrer Must Be Internal Partner

Sometimes, the referrer must be a portal/internal user depending on the module design.

Check:

  • The Referrer has a linked res.users (optional, but often required for correct access rights).
  • The Referrer is not archived or deactivated.
5. Partner Activation Status

Even if you assign a Partner Level, if the partner isn't activated , the commission won't trigger.

Check:

  • Go to the partner → Make sure Partner Activated is set to True.
  • Some builds have a toggle or status that must be manually set.
6. Currency Conflicts

If your price list and product currencies mismatch with company currency, Odoo may skip applying rules silently.

Check:

  • Ensure all products, pricelists, and partners are using consistent currency .
  • Check for any missing currency_id values ​​on the pricelist/product.
7. Debug with Developer Mode

Turn on developer mode and:

  • Open the Quotation .
  • See if the referrer_commission_ids are created.
  • If not, check the rule evaluation in sale.order → method _prepare_referrer_commissions() .


Still Not Working? Then check Official Documentation


  1. Resellers Configuration (CRM)
  2. Commission Plans (Sales app)
  3. Subscription Management


Community & Blog Guides


  1. Technaureus blog: Odoo Reseller Commission for Subscription
  2. Odoo Forum: How to setup Commissions in Odoo
  3. ERPGAP: Boosting Sales with Commissions in Odoo 18


Video Demonstration :- https://youtu.be/xnJ5snpxEk0?si=9MCGh9v0t7bYeylV 


Third‑Party Paid Module :- 

  1. Reseller Commission Fixed Amount (v17, also compatible with 18)

Link :- https://apps.odoo.com/apps/modules/17.0/wm_partner_commission_fixed 


Thanks & Regards,

Email: contact@datainteger.com 

Avatar
Descartar
Autor

is multi-currency partner commission calculation possible in Odoo?
If Yes, how does Odoo handle such currency conversions, and what configurations are required to achieve this?

Publicaciones relacionadas Respuestas Vistas Actividad
1
jun 25
761
1
jul 25
888
0
may 25
5
1
abr 25
2168
2
feb 25
4700