-
-
Notifications
You must be signed in to change notification settings - Fork 717
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] product_pricelist_alternative #1557
[ADD] product_pricelist_alternative #1557
Conversation
8186681
to
f99e03a
Compare
f99e03a
to
2b1bba5
Compare
2b1bba5
to
01f4908
Compare
a5b9633
to
a4bb538
Compare
@simahawk I changed the code with some of your requests |
a4bb538
to
e326f32
Compare
/ocabot merge nobump |
On my way to merge this fine PR! |
This PR has the |
b2966ec
to
06b5623
Compare
Hi @pedrobaeza , can you merge this PR please ? :) |
06b5623
to
3e05b91
Compare
@simahawk code was updated with |
3e05b91
to
7a6745e
Compare
7a6745e
to
5f0c72b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pre-approving
[("alternative_pricelist_ids", "in", self.ids)], | ||
["alternative_pricelist_ids"], | ||
"alternative_pricelist_ids", | ||
lazy=False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why lazy=false?
You don't need to access anything but ID and count.
This PR has the |
/ocabot merge nobump |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at fca14bc. Thanks a lot for contributing to OCA. ❤️ |
It allows you to define alternative price lists to a reference price list.
As a general rule, the price of a given product is obtained from the minimum between its reference price list and the alternative price lists.
However, if the product's reference price has been calculated on the basis of a price rule in which the "Alternative Pricelist Policy = Ignore" field is selected, the alternative price lists will not be taken into account.