Skip to content

[19.0][MIG] sale_commission_salesman#666

Open
omar7r wants to merge 20 commits into
OCA:19.0from
Comunitea:19.0-mig-sale_commission_salesman
Open

[19.0][MIG] sale_commission_salesman#666
omar7r wants to merge 20 commits into
OCA:19.0from
Comunitea:19.0-mig-sale_commission_salesman

Conversation

@omar7r
Copy link
Copy Markdown
Contributor

@omar7r omar7r commented Mar 9, 2026

Standard migration

pedrobaeza and others added 20 commits March 9, 2026 17:35
This module extends the functionality of `sale_commission` to allow you to
auto-populate salesmen as commission agents without setting explicitly them
on the customer.

**IMPORTANT**: The salesman will be only populated if no other commission agent
is set via other method, to assure that there's no overlapping commissions.

Configuration
=============

* Go to *Contacts*.
* Search for the contact linked to the salesman user and open it.
* If it's actually linked to a user, you'll see a new check in the
  *Agent information* page, called "Convert salesman into agent".
* Check it for having that salesman automatically populated as agent. You
  need to assign a commission to that agent as well.

Usage
=====

To use this module, you need to:

* Go to *Sales > Orders > Quotations* and create a new one.
* Fill the customer with one with no agents set.
* Select a salesman with the mark checked.
* Add a line in the quotation, and you will see the salesman populated as
  commission agent.
* Standard procedure
* Adapt account.invoice > account.move
* Adapt tests
Solves [13.0] sale_commission_pricelist - sale_commission_salesman error OCA#274
Co-authored-by: Bhavesh Odedra <bodedra@opensourceintegrators.com>
Currently translated at 100.0% (6 of 6 strings)

Translation: commission-16.0/commission-16.0-sale_commission_salesman
Translate-URL: https://translation.odoo-community.org/projects/commission-16-0/commission-16-0-sale_commission_salesman/it/
Changelog:
- Replace `attrs` with an expression for the `invisible` attribute in
  the view.
…move lines

Fetch the partner by move line record instead of fetching all partners
for all invoice users related to the moves. The previous method could
fetch more than one partner, including those not related to the move,
when multiple lines for different moves are being processed, causing an
error when trying to obtain the values of the `agent` and
`salesman_as_agent` fields.
Currently translated at 100.0% (6 of 6 strings)

Translation: commission-17.0/commission-17.0-sale_commission_salesman
Translate-URL: https://translation.odoo-community.org/projects/commission-17-0/commission-17-0-sale_commission_salesman/it/
@omar7r omar7r force-pushed the 19.0-mig-sale_commission_salesman branch from 2d7b8f4 to 8085f5f Compare March 9, 2026 16:52
@omar7r omar7r mentioned this pull request Mar 9, 2026
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.