-
-
Notifications
You must be signed in to change notification settings - Fork 707
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
[IMP] product_state (copy=False) #1074
Conversation
Hi @emagdalenaC2i, |
@dreispt can you please 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.
Comment (non blocking) : state is a caracteristic of the product so it is attended by the user to preserve the information when duplicate. Why do you think that empty value is better than the value of the duplicated item ?
Note : i personnaly dont use this module.
@legalsylvain I'm not sure I understand what you mean about 'empty value' as it wouldn't be an empty value but instead the newly copied product would default to the stage that has the is_default set. |
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.
@patrickrwilson Could you add a little test for this change ?
Ah, sorry. I didn't know the interaction between regards. |
5d73a9e
to
960da43
Compare
FYI: I'll be fixing the new test |
The product state shouldn't be copied when copying the product so this adds copy=False to the state field. [IMP] product_state: Add test for copy [FIX] Test
960da43
to
5e7d575
Compare
@legalsylvain "state" is computed based on "Stage" - is groups the dynamic and configurable Stages list into specific state codes. |
/ocabot merge patch |
On my way to merge this fine PR! |
This PR has the |
Congratulations, your PR was merged at 4c210a4. Thanks a lot for contributing to OCA. ❤️ |
The product state shouldn't be copied when copying the product so this adds copy=False to the state field.