Move cost price to product level instead of template

issue6515
review41321002
This commit is contained in:
Cédric Krier
2017-07-05 14:51:50 +02:00
parent 0769d2cb19
commit 13baa98a36
-4
View File
@@ -46,10 +46,8 @@ class StockForecastTestCase(ModuleTestCase):
template, = Template.create([{
'name': 'Test create_moves',
'type': 'goods',
'cost_price_method': 'fixed',
'default_uom': unit.id,
'list_price': Decimal('1'),
'cost_price': Decimal(0),
}])
product, = Product.create([{
'template': template.id,
@@ -125,10 +123,8 @@ class StockForecastTestCase(ModuleTestCase):
template, = Template.create([{
'name': 'Test complete',
'type': 'goods',
'cost_price_method': 'fixed',
'default_uom': unit.id,
'list_price': Decimal('1'),
'cost_price': Decimal(0),
}])
product, = Product.create([{
'template': template.id,