Skip to content
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

Open
wants to merge 10 commits into
base: 17.0
Choose a base branch
from

Conversation

bizzappdev
Copy link
Contributor

Dependency MR for module product_packaging_level #1662

@bizzappdev bizzappdev marked this pull request as ready for review June 24, 2024 09:49
Copy link
Contributor

@trisdoan trisdoan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bizzappdev bizzappdev force-pushed the 17.0-mig-product_packaging_level_salable-BAD branch from 401cb4a to 8d7471d Compare December 3, 2024 09:03
@bizzappdev
Copy link
Contributor Author

You need to remove migration script as well

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-17.0

Removed. Thanks for noticing.

Comment on lines 23 to 24
onchange_res = self.order_line._onchange_product_packaging_id()
self.assertIn("warning", onchange_res)
Copy link
Contributor

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):
Copy link
Contributor

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

@bizzappdev bizzappdev force-pushed the 17.0-mig-product_packaging_level_salable-BAD branch from 8d7471d to 1b35425 Compare February 4, 2025 11:30
@bizzappdev
Copy link
Contributor Author

@ivantodorovich, changes are done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants