[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
This commit is contained in:
Sébastien Theys
2018-12-18 16:15:34 +00:00
parent 301740c80b
commit 1c5b28fbdd
+1 -1
View File
@@ -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)