Skip to content

[19.0][MIG] sale_order_restrict_copy_archived_product: Migration to 19.0#4375

Open
apik-mgu wants to merge 10 commits into
OCA:19.0from
apikcloud:19.0-mig-sale_order_restrict_copy_archived_product
Open

[19.0][MIG] sale_order_restrict_copy_archived_product: Migration to 19.0#4375
apik-mgu wants to merge 10 commits into
OCA:19.0from
apikcloud:19.0-mig-sale_order_restrict_copy_archived_product

Conversation

@apik-mgu
Copy link
Copy Markdown

No description provided.

@OCA-git-bot OCA-git-bot added series:19.0 mod:sale_order_restrict_copy_archived_product Module sale_order_restrict_copy_archived_product labels May 29, 2026
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 TestSaleOrderRestrictCopyArchivedProduct(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 TestSaleOrderRestrictCopyArchivedProduct(TransactionCase):
class TestSaleOrderRestrictCopyArchivedProduct(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"})

Comment on lines +26 to +28
(
0,
0,
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
(
0,
0,
Command.create(

Comment on lines +45 to +47
(
0,
0,
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
(
0,
0,
Command.create(

@apik-mgu apik-mgu force-pushed the 19.0-mig-sale_order_restrict_copy_archived_product branch 2 times, most recently from 83ed03b to 74ae281 Compare June 4, 2026 06:55
@apik-mgu apik-mgu force-pushed the 19.0-mig-sale_order_restrict_copy_archived_product branch from 74ae281 to fd59daf Compare June 4, 2026 06:59
@apik-mgu
Copy link
Copy Markdown
Author

apik-mgu commented Jun 4, 2026

@BhaveshHeliconia Requested changes completed

Good day!

@BhaveshHeliconia
Copy link
Copy Markdown
Contributor

@apik-mgu could you please check the failing test/ci?

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

Labels

mod:sale_order_restrict_copy_archived_product Module sale_order_restrict_copy_archived_product series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants