[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 0a095da31b
commit 19d8d3a626
+5 -5
View File
@@ -10,11 +10,11 @@ class TestSaleCouponProgramNumbers(TestSaleCouponCommon):
def setUp(self):
super(TestSaleCouponProgramNumbers, self).setUp()
self.iPadMini = self.env.ref('product.product_product_6').copy()
self.iPod = self.env.ref('product.product_product_11').copy()
self.wirelessKeyboard = self.env.ref('product.product_product_9').copy()
self.computerCase = self.env.ref('product.product_product_16').copy()
self.littleServer = self.env.ref('product.consu_delivery_02').copy()
self.iPadMini = self.env.ref('product.product_product_6')
self.iPod = self.env.ref('product.product_product_11')
self.wirelessKeyboard = self.env.ref('product.product_product_9')
self.computerCase = self.env.ref('product.product_product_16')
self.littleServer = self.env.ref('product.consu_delivery_02')
self.steve = self.env['res.partner'].create({
'name': 'Steve Bucknor',
'customer': True,