-
-
Notifications
You must be signed in to change notification settings - Fork 721
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
[14.0][IMP] product_tier_validation : force default state on create and improve _state_to #1269
[14.0][IMP] product_tier_validation : force default state on create and improve _state_to #1269
Conversation
Hi @dreispt, |
81a0f82
to
07319a6
Compare
Second commit fix it but need to set product_status as rebel module. |
82d67e1
to
4705e0d
Compare
4705e0d
to
f78f00d
Compare
264afbb
to
1cc46bf
Compare
1cc46bf
to
d386a14
Compare
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. |
@gurneyalex @rousseldenis can you reopen this PR? (I do not have the right to do it) Thanks |
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 (code review) and tested
When creating a new product, we can directly set a normal / sellable state on it, without validation. This PR avoid that by forcing the "_state_from" on product creation.
First commit is the failing test, second test fix it.
Last commit purpose is to improve _state_to value for products :
The base module "base_tier_validation" proposes "confirmed" as "_state_to" value, which is not a product state. Furthermore, we can create other product.state. In order to use this module out of the box and to take account of all the states created by users, we propose here to change the _state_to accordingly.