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

[ADD] sale_order_line_case_number: add tests #54

Merged
merged 2 commits into from
Feb 6, 2023

Conversation

AungKoKoLin1997
Copy link
Contributor

@AungKoKoLin1997 AungKoKoLin1997 commented Jan 26, 2023

@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 15.0-add-tests-sale_order_line_case_number branch from 0a795f6 to d90b7b3 Compare January 26, 2023 05:46
"name": "Product2",
"list_price": 100.00,
"default_code": "Test2",
"case_number": "123",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"case_number": "123",
"case_number": "456",

To make the intention clearer.

order = self._create_sale_order(self.product2)
order_line = order.order_line
order_line.product_id_change()
self.assertEqual(order_line.name, "[Test2][123] Product2")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
self.assertEqual(order_line.name, "[Test2][123] Product2")
self.assertEqual(order_line.name, "[Test2][456] Product2")

@kanda999 kanda999 merged commit 1ee6858 into 15.0 Feb 6, 2023
@AungKoKoLin1997 AungKoKoLin1997 deleted the 15.0-add-tests-sale_order_line_case_number branch March 13, 2023 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants