From 5352b9057609c29a11664a480cd207ceab82391d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 19 Mar 2016 09:04:55 +0100 Subject: [PATCH] Replace category by categories on Template issue5320 review23791002 --- ...rio_carrier_percentage_with_purchase_shipment_cost.rst | 8 -------- tests/test_carrier_percentage.py | 5 ----- 2 files changed, 13 deletions(-) diff --git a/tests/scenario_carrier_percentage_with_purchase_shipment_cost.rst b/tests/scenario_carrier_percentage_with_purchase_shipment_cost.rst index fd68a5fdd3..9f5f7b3a99 100644 --- a/tests/scenario_carrier_percentage_with_purchase_shipment_cost.rst +++ b/tests/scenario_carrier_percentage_with_purchase_shipment_cost.rst @@ -66,12 +66,6 @@ Create customer:: >>> customer = Party(name='Customer') >>> customer.save() -Create category:: - - >>> ProductCategory = Model.get('product.category') - >>> category = ProductCategory(name='Category') - >>> category.save() - Create products:: >>> ProductUom = Model.get('product.uom') @@ -81,7 +75,6 @@ Create products:: >>> product = Product() >>> template = ProductTemplate() >>> template.name = 'Product' - >>> template.category = category >>> template.default_uom = unit >>> template.type = 'goods' >>> template.salable = True @@ -94,7 +87,6 @@ Create products:: >>> carrier_product = Product() >>> carrier_template = ProductTemplate() >>> carrier_template.name = 'Carrier Product' - >>> carrier_template.category = category >>> carrier_template.default_uom = unit >>> carrier_template.type = 'service' >>> carrier_template.salable = True diff --git a/tests/test_carrier_percentage.py b/tests/test_carrier_percentage.py index 5fb451a366..2ca7fd58d2 100644 --- a/tests/test_carrier_percentage.py +++ b/tests/test_carrier_percentage.py @@ -24,7 +24,6 @@ class CarrierPercentageTestCase(ModuleTestCase): Uom = pool.get('product.uom') Template = pool.get('product.template') Product = pool.get('product.product') - Category = pool.get('product.category') Carrier = pool.get('carrier') party, = Party.create([{ @@ -33,13 +32,9 @@ class CarrierPercentageTestCase(ModuleTestCase): uom, = Uom.search([ ('name', '=', 'Unit'), ]) - category, = Category.create([{ - 'name': 'Category', - }]) template, = Template.create([{ 'name': 'Carrier', 'default_uom': uom.id, - 'category': category.id, 'type': 'service', 'list_price': Decimal(0), 'cost_price': Decimal(0),