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] res_company_search_view: Migration to 18.0 #751

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

Conversation

HeliconiaSolutions
Copy link

No description provided.

street2 = fields.Char(store=True)
zip = fields.Char(store=True)
city = fields.Char(store=True)
state_id = fields.Many2one(store=True)
Copy link

Choose a reason for hiding this comment

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

Why are these model changes necessary? Aren't these values stored on the related partner_id?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the same as @amh-mw, is there any reason to add this @HeliconiaSolutions?

Copy link
Author

Choose a reason for hiding this comment

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

@Christian-RB , @amh-mw , Thank you for suggestions! It's fixed Please review.

@HeliconiaSolutions HeliconiaSolutions force-pushed the 18.0-mig-res_company_search_view branch 3 times, most recently from 3eb25bd to 925ef50 Compare January 31, 2025 11:50
Copy link

@amh-mw amh-mw left a comment

Choose a reason for hiding this comment

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

Code review only. LGTM.

Copy link
Contributor

@Christian-RB Christian-RB left a comment

Choose a reason for hiding this comment

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

Almost there just one last thing

Comment on lines 1 to 4
from odoo.tests.common import TransactionCase


class TestResCompany(TransactionCase):
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry just saw this on https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-18.0

Use BaseCommon as base test class to reduce overhead from tracking and boost the test suite.

Suggested change
from odoo.tests.common import TransactionCase
class TestResCompany(TransactionCase):
from odoo.addons.base.tests.common import BaseCommon
class TestResCompany(BaseCommon):

Copy link
Author

Choose a reason for hiding this comment

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

@Christian-RB yes! it's Fixed.please review.

@HeliconiaSolutions HeliconiaSolutions force-pushed the 18.0-mig-res_company_search_view branch from 925ef50 to d465766 Compare February 7, 2025 11:14
@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). 🤖

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