Skip to content

[17.0][MIG] product_packaging_level_salable: Migration to 17.0#1669

Merged
OCA-git-bot merged 9 commits intoOCA:17.0from
BizzAppDev-Systems:17.0-mig-product_packaging_level_salable-BAD
Mar 10, 2025
Merged

[17.0][MIG] product_packaging_level_salable: Migration to 17.0#1669
OCA-git-bot merged 9 commits intoOCA:17.0from
BizzAppDev-Systems:17.0-mig-product_packaging_level_salable-BAD

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.

@sebalix
Copy link
Contributor

sebalix commented Mar 5, 2025

/ocabot migration product_packaging_level_salable

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Mar 5, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Mar 5, 2025
69 tasks
Copy link
Contributor

@sebalix sebalix left a comment

Choose a reason for hiding this comment

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

LG, can you remove the [DON'T MERGE] commit now that the dependency is merged? Thanks!

@bizzappdev bizzappdev force-pushed the 17.0-mig-product_packaging_level_salable-BAD branch from 1b35425 to 9e7af88 Compare March 5, 2025 13:19
@bizzappdev
Copy link
Contributor Author

@sebalix test-requirement commit has been removed.

@sebalix
Copy link
Contributor

sebalix commented Mar 10, 2025

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 17.0-ocabot-merge-pr-1669-by-sebalix-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit aae0ab1 into OCA:17.0 Mar 10, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 2d1704a. Thanks a lot for contributing to OCA. ❤️

@sebalix sebalix changed the title [17.0] [MIG] product_packaging_level_salable: Migration to 17.0 [17.0][MIG] product_packaging_level_salable: Migration to 17.0 Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants