-
-
Notifications
You must be signed in to change notification settings - Fork 272
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
[16.0][IMP] base_global_discount: Add check global discount in product #221
Conversation
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.
lgtm
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.
LGTM
Hello! :-) This module is base_global_discount and not base_config_discount This should be reviewed by @ferran-S73 @rousseldenis or @pedrobaeza Thank you! |
ff1e9db
to
5304cf5
Compare
Hi @rafaelbn since the original owner of the PR doesn't work here anymore I fixed the commit name myself. As for the changes in here LGTM |
I guess the title of the PR has to be changed by a maintainer |
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.
LG overall, just a quick code review tho.
TODO:
- rollback module version
- remove odoo version from commit
@pedrobaeza anyone from Tecnativa to review?
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.
I think in a business perspective more logical to use a negative flag: don't apply global discount, although the formula I prefer is to add a m2m in each global discount to exclude some products from them.
5304cf5
to
bd92598
Compare
@simahawk @pedrobaeza changes done, I haven't changed the field itself as to no disrupt our clients that are already using this feature |
Well, you can put migration scripts, but keeping weird fields in the definitive version is not desirable. |
I agree. In this case you are allowed to change the version manually and add a pre/post migrate script to adapt existing installations. |
@Rferri44-S73 ping |
Hi @simahawk , I'm sorry I haven't been able to update this pr as requested. I have this in my todo list and will eventually apply the suggestions you and @pedrobaeza gave me. Sorry for the inconvenience |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Hi @Rferri44-S73 little ping have you the time to work on it ? :) |
Hi, could you please rebase? Thanks! |
bd92598
to
52d772d
Compare
This is blocking OCA/account-invoicing#1338 |
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.
LGTM, Thanks!
@simahawk can we proceed to merge? this blocks OCA/account-invoicing#1338 |
@@ -0,0 +1,15 @@ | |||
# Copyright 2023 Studio73 - Rafa Ferri <[email protected]> | |||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). |
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.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | |
# License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). |
@@ -0,0 +1,36 @@ | |||
# Copyright 2023 Studio73 - Rafa Ferri <[email protected]> | |||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). |
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.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | |
# License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). |
Summarizing this one, apart from my latest comments, we are talking about not putting a flag in the product, that is very disrupting, but add a m2m in the global discounts for including or excluding. That way, you get even more granularity. |
52d772d
to
f1eb3c9
Compare
f1eb3c9
to
dd45bc7
Compare
dd45bc7
to
d160ff9
Compare
Hi @pedrobaeza I've updated this PR adding a negative flag on the products as accorded on OCA/account-invoicing#1725 (comment) I have also updated th following PRs that depend on this one
Hope everything is alright now! |
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.
OK, I think it's good enough
/ocabot merge minor
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at b835bae. Thanks a lot for contributing to OCA. ❤️ |
Add check global discount in products