From 5d8d97ada79347e864e315ced9468bd4ed03bc6a Mon Sep 17 00:00:00 2001 From: Ronald Portier Date: Tue, 18 Sep 2018 00:28:07 +0200 Subject: [PATCH] [FIX] Test product name change in en_US. --- contract/tests/test_contract.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/contract/tests/test_contract.py b/contract/tests/test_contract.py index 90305abf..ebb807ad 100644 --- a/contract/tests/test_contract.py +++ b/contract/tests/test_contract.py @@ -307,11 +307,7 @@ class TestContract(TestContractBase): line = self._add_template_line() line.product_id.description_sale = 'Test' line._onchange_product_id() - # Make sure we use same language settings as in tested code: - product = line.product_id.with_context( - lang=self.partner.lang, - partner=self.partner.id) - product_name = product.name_get()[0][1] + product_name = line.product_id.name_get()[0][1] self.assertEqual( line.name, '\n'.join([product_name, line.product_id.description_sale]))