Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD] 'sale_discount_limit' #152

Closed
wants to merge 3 commits into from
Closed

[ADD] 'sale_discount_limit' #152

wants to merge 3 commits into from

Conversation

JordiBForgeFlow
Copy link
Sponsor Member

This module was created to extend the sales process. It allows to
set a maximum permitted sales discount % on each product on a sale quotation.

A sales user cannot approve a sales quotation if any of the items contain a
sales discount % above the maximum allowed.

A user can manually initiate the maximum discount limit check when the quote
is in status draft or sent.

Users belonging to the group 'Sales Quotation Discount Block Releaser' will
have the permission to override this rule and approve the sales quotation.

@jgrandguillaume
Copy link
Member

Hi Jordi,

Thanks for the contrib ! Can I ask why you didn't use this module as a base: "https://github.com/OCA/sale-workflow/tree/8.0/sale_exceptions"

Sale_exception is trying to address the management of all kind of things and checks that need to be performed on a SO and raise it at SO confirmation. This way, you have a summary of all "troubles" at once regarding your order and you can fix them before going further. Exception can be by-passed if needed.

My opinion is that it would be great to have all kind of check on SO confirmation based on this module so we have a unified way to deal with them within the OCA.

What do you think ?

Regards,

Joël

@JordiBForgeFlow
Copy link
Sponsor Member Author

OMG! I didn't check this module when I looked for something already done. I will will then build it on top of sale_exceptions. I'm now closing this PR, and will submit a new one.

Thanks Joël!!!
Jordi.

@jjscarafia
Copy link
Contributor

Jordi,
We also have this module that has been working in many costumer's in 6.1, 7.0 and now in 8.0
It also adds a boolean on products to allow users to change prices on those products (like shipment)
https://github.com/ingadhoc/odoo-addons/tree/8.0/price_security
If you find it useful we can clean the code andake a PR
But perhaps its better what Joel suggests
Thanks!

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.61%) to 81.99% when pulling 0d93c56 on Eficent:8.0 into 8b0e50b on OCA:8.0.

@JordiBForgeFlow
Copy link
Sponsor Member Author

@jgrandguillaume I have refactored the module, to work on top of 'sale_exceptions'. Thanks for your feedback!!

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.

None yet

4 participants