From 1c5b28fbdd09baa80d6fee87d995753750f646f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Tue, 18 Dec 2018 16:15:34 +0000 Subject: [PATCH] [FIX] sale_coupon(_delivery): fix coupon test with product configurator The copy() is unnecessary, and it is introducing an issue because product.template.attribute.value are not created correctly for copied templates. The test can be done on the original data, the transaction is going to be reverted either way. closes odoo/enterprise#3301 --- tests/test_free_shipping_reward.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_free_shipping_reward.py b/tests/test_free_shipping_reward.py index d2639a047ba..a21027ca00f 100644 --- a/tests/test_free_shipping_reward.py +++ b/tests/test_free_shipping_reward.py @@ -8,7 +8,7 @@ class TestSaleCouponProgramRules(TestSaleCouponCommon): def setUp(self): super(TestSaleCouponProgramRules, self).setUp() - self.iPadMini = self.env.ref('product.product_product_6').copy() + self.iPadMini = self.env.ref('product.product_product_6') # Test a free shipping reward + some expected behavior # (automatic line addition or removal)