Move cost price to product level instead of template
issue6515 review41321002
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user