Skip to content

[19.0][MIG] crm_partner_required: Migration to 19.0#745

Open
WesleyOliveira98 wants to merge 7 commits into
OCA:19.0from
Escodoo:19.0-mig-crm_partner_required
Open

[19.0][MIG] crm_partner_required: Migration to 19.0#745
WesleyOliveira98 wants to merge 7 commits into
OCA:19.0from
Escodoo:19.0-mig-crm_partner_required

Conversation

@WesleyOliveira98

Copy link
Copy Markdown

@OCA-git-bot OCA-git-bot added series:19.0 mod:crm_partner_required Module crm_partner_required mod:crm_lead_to_task Module crm_lead_to_task labels May 21, 2026
@WesleyOliveira98 WesleyOliveira98 marked this pull request as draft May 21, 2026 23:21
@WesleyOliveira98 WesleyOliveira98 force-pushed the 19.0-mig-crm_partner_required branch from 92aa2e7 to fe62731 Compare May 21, 2026 23:24
@WesleyOliveira98 WesleyOliveira98 force-pushed the 19.0-mig-crm_partner_required branch from fe62731 to 3d1036d Compare May 21, 2026 23:29
@OCA-git-bot OCA-git-bot removed the mod:crm_lead_to_task Module crm_lead_to_task label May 21, 2026
@WesleyOliveira98

Copy link
Copy Markdown
Author

Error in tests fixed in #746

@WesleyOliveira98 WesleyOliveira98 marked this pull request as ready for review May 21, 2026 23:43

@BhaveshHeliconia BhaveshHeliconia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a minor suggestion: could we use BaseCommon here? That way, we wouldn’t need to create a res.partner record manually.

from odoo.tests.common import TransactionCase


class TestCRMPartnerRequired(TransactionCase):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
class TestCRMPartnerRequired(TransactionCase):
class TestCRMPartnerRequired(Basecommon):

@classmethod
def setUpClass(cls):
super().setUpClass()
cls.partner = cls.env["res.partner"].create({"name": "Test Partner"})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
cls.partner = cls.env["res.partner"].create({"name": "Test Partner"})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:crm_partner_required Module crm_partner_required series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants