-
-
Notifications
You must be signed in to change notification settings - Fork 720
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
[17.0] [MIG] product_packaging_level_salable: Migration to 17.0 #1669
base: 17.0
Are you sure you want to change the base?
[17.0] [MIG] product_packaging_level_salable: Migration to 17.0 #1669
Conversation
Currently translated at 100.0% (10 of 10 strings) Translation: product-attribute-16.0/product-attribute-16.0-product_packaging_level_salable Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_packaging_level_salable/it/
Currently translated at 100.0% (10 of 10 strings) Translation: product-attribute-16.0/product-attribute-16.0-product_packaging_level_salable Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_packaging_level_salable/es/
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.
You need to remove migration script as well
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-17.0
401cb4a
to
8d7471d
Compare
Removed. Thanks for noticing. |
onchange_res = self.order_line._onchange_product_packaging_id() | ||
self.assertIn("warning", onchange_res) |
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.
These lines are never tested because of the ValidationError just above.
Could you move this to a separate test method?
|
||
def test_packaging_level_can_be_sold(self): | ||
self.order_line.write({"product_packaging_id": self.packaging_tu.id}) | ||
with self.assertRaises(ValidationError): |
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.
nitpicking: use self.assertRaisesRegex and compare the actual error message
8d7471d
to
1b35425
Compare
@ivantodorovich, changes are done. |
Dependency MR for module
product_packaging_level
#1662