From 647d3beacb5d7345db3dd28fb72de6c54700216d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 5 Jul 2017 14:51:48 +0200 Subject: [PATCH] Move cost price to product level instead of template issue6515 review41321002 --- tests/scenario_purchase_requisition.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/scenario_purchase_requisition.rst b/tests/scenario_purchase_requisition.rst index 8c32240400..33a0d84ebb 100644 --- a/tests/scenario_purchase_requisition.rst +++ b/tests/scenario_purchase_requisition.rst @@ -94,20 +94,19 @@ Create product:: >>> ProductUom = Model.get('product.uom') >>> ProductTemplate = Model.get('product.template') - >>> Product = Model.get('product.product') >>> unit, = ProductUom.find([('name', '=', 'Unit')]) - >>> product = Product() + >>> template = ProductTemplate() >>> template.name = 'Product' >>> template.default_uom = unit >>> template.type = 'goods' >>> template.list_price = Decimal('20') - >>> template.cost_price = Decimal('8') >>> template.purchasable = True >>> template.account_expense = expense + >>> product, = template.products + >>> product.cost_price = Decimal('8') >>> template.save() - >>> product.template = template - >>> product.save() + >>> product, = template.products Create purchase requisition without product and description::