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][FW] product_state: multiple ports from 14.0 #1755

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

henrybackman
Copy link

@OCA-git-bot
Copy link
Contributor

Hi @emagdalenaC2i,
some modules you are maintaining are being modified, check this out!

@henrybackman
Copy link
Author

Tests from another module uom_category_active are failing but I am not able to connect them to the changes done in this PR. Unsure how to proceed.

@ivantodorovich
Copy link
Contributor

Even if unrelated, we'll need to investigate and fix it in order to merge this one :/

Having a quick look on the failing module.. I honestly don't understand how that test managed to originally succeed.
It seems contradictory to the actual code.

def test_archive_reference_uom(self):
self.assertTrue(self.uom_categ.active)
uom = self.uom_categ.uom_ids[0]
self.assertTrue(uom.active)
uom.active = False
with self.assertRaises(UserError):
self.uom_categ._onchange_uom_ids()

@api.onchange("uom_ids")
def _onchange_uom_ids(self):
if self.active:
return super()._onchange_uom_ids()

My recommendation: remove the assertRaises lines in a separate PR, pinging the module author to check

@henrybackman
Copy link
Author

@ivantodorovich Seems like this test failure is not related to this and affects all PRs:

Copy link
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

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

CI fixed on #1760

patrickrwilson and others added 2 commits November 11, 2024 09:18
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
@simahawk
Copy link
Contributor

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 17.0-ocabot-merge-pr-1755-by-simahawk-bump-minor, awaiting test results.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot OCA-git-bot merged commit ea74334 into OCA:17.0 Nov 11, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

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.

7 participants