-
-
Notifications
You must be signed in to change notification settings - Fork 711
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
[18.0][MIG] product_status: Migration to 18.0 #1796
base: 18.0
Are you sure you want to change the base?
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.
LG, one remark
@classmethod | ||
def setUpClass(cls): | ||
super().setUpClass() | ||
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) |
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.
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) |
As base class TestProductCommon
now inherits from BaseCommon
, you don't need to disable the tracking.
9aa1449
to
9912949
Compare
@@ -13,7 +13,7 @@ class TestProductStatusCase(TestProductCommon): | |||
@classmethod | |||
def setUpClass(cls): | |||
super().setUpClass() | |||
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) | |||
cls.env = cls.env(context=dict(cls.env.context)) |
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.
That means you can remove this whole line ;)
/ocabot migration product_status |
bda785d
to
8314dec
Compare
Before this change a product would never get back into its default state. Example: a new proudct with a new until date in the past will keep a state set as `new`. Instead it should be set to the default status.
8314dec
to
6eb32fb
Compare
Depend: