[19.0][MIG] sale_commission_salesman#666
Open
omar7r wants to merge 20 commits into
Open
Conversation
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.
* 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/
2d7b8f4 to
8085f5f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Standard migration