Skip to content

[MIG] product_supplierinfo_code: Migration to 19.0#2280

Open
RaphaelVicini wants to merge 17 commits into
OCA:19.0from
acsone:19.0-mig-product_supplierinfo_code
Open

[MIG] product_supplierinfo_code: Migration to 19.0#2280
RaphaelVicini wants to merge 17 commits into
OCA:19.0from
acsone:19.0-mig-product_supplierinfo_code

Conversation

@RaphaelVicini
Copy link
Copy Markdown

No description provided.

rousseldenis and others added 16 commits April 30, 2026 17:19
label is now visible in product.template
Translated using Weblate (Italian)

Currently translated at 100.0% (4 of 4 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_supplierinfo_code
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_supplierinfo_code/it/
Currently translated at 100.0% (4 of 4 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_supplierinfo_code
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_supplierinfo_code/es/
@OCA-git-bot OCA-git-bot added series:19.0 mod:product_supplierinfo_code Module product_supplierinfo_code labels May 4, 2026
@RaphaelVicini RaphaelVicini force-pushed the 19.0-mig-product_supplierinfo_code branch from 1abf92a to 3e2819a Compare May 4, 2026 10:14
Copy link
Copy Markdown
Member

@FrancoMaxime FrancoMaxime left a comment

Choose a reason for hiding this comment

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

LGTM: code review

Copy link
Copy Markdown
Contributor

@BhaveshHeliconia BhaveshHeliconia left a comment

Choose a reason for hiding this comment

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

Consider using BaseCommon instead of TransactionCase. In this case, there’s no need to redefine cls.env with tracking_disable=True, and res.partner is already available via BaseCommon. This would help simplify and optimize the test code.

from odoo.tests.common import TransactionCase


class TestSupplierinfoCode(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 TestSupplierinfoCode(TransactionCase):
class TestSupplierinfoCode(Basecommon):

@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))
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.env = cls.env(context=dict(cls.env.context, tracking_disable=True))

super().setUpClass()
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))

cls.supplier_1 = cls.env["res.partner"].create({"name": "Supplier 1"})
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.supplier_1 = cls.env["res.partner"].create({"name": "Supplier 1"})

@RaphaelVicini RaphaelVicini force-pushed the 19.0-mig-product_supplierinfo_code branch from 3e2819a to dae492e Compare May 6, 2026 12:59
@RaphaelVicini
Copy link
Copy Markdown
Author

Thanks for your comment @BhaveshHeliconia

@OCA-git-bot
Copy link
Copy Markdown
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.

10 participants