From 0ebc542e4a3ff0cd46dd6f57719a5765f5660a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 5 Jul 2017 14:51:43 +0200 Subject: [PATCH] Move cost price to product level instead of template issue6515 review41321002 --- tests/scenario_analytic_purchase.rst | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/scenario_analytic_purchase.rst b/tests/scenario_analytic_purchase.rst index c082fe25e5..6ac60fdac6 100644 --- a/tests/scenario_analytic_purchase.rst +++ b/tests/scenario_analytic_purchase.rst @@ -78,21 +78,16 @@ Create product:: >>> ProductUom = Model.get('product.uom') >>> unit, = ProductUom.find([('name', '=', 'Unit')]) >>> ProductTemplate = Model.get('product.template') - >>> Product = Model.get('product.product') - >>> product = Product() >>> template = ProductTemplate() >>> template.name = 'product' >>> template.default_uom = unit >>> template.type = 'goods' >>> template.purchasable = True >>> template.list_price = Decimal('10') - >>> template.cost_price = Decimal('5') - >>> template.cost_price_method = 'fixed' >>> template.account_expense = expense >>> template.account_revenue = revenue >>> template.save() - >>> product.template = template - >>> product.save() + >>> product, = template.products Create payment term::