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

[18.0][MIG] partner_title_order: Migration to 18.0 #1862

Open
wants to merge 11 commits into
base: 18.0
Choose a base branch
from

Conversation

Kimkhoi3010
Copy link

No description provided.

Copy link
Member

@TDu TDu left a comment

Choose a reason for hiding this comment

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

LG

@@ -14,7 +14,7 @@ def test_default_order(self):
partner_titles = self.env["res.partner.title"].search([])
self.assertEqual(
partner_titles.mapped("name"),
partner_titles.sorted(lambda x: x.name).mapped("name"),
partner_titles.sorted(lambda x: (x.sequence, x.name)).mapped("name"),
Copy link
Member

Choose a reason for hiding this comment

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

Was this change because the test failed ?
IMO it should not have, all sequence fields should have been set to 10 ?
Just a question to understand the change.

Copy link
Author

Choose a reason for hiding this comment

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

That was my mistake! There was a bit of confusion between two test cases, which led to my change in that part.

@rousseldenis
Copy link
Contributor

/ocabot migration partner_title_order



class TestPartnerTitle(SavepointCase):
class TestPartnerTitle(common.TransactionCase):
Copy link
Contributor

Choose a reason for hiding this comment

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

@Kimkhoi3010 FYI, to avoid the tracking_disable context change here under, you can use BaseCommon class from base addon instead.

Copy link
Author

Choose a reason for hiding this comment

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

hello @rousseldenis thanks for your time.

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