diff --git a/tests/scenario_sale_complaint.rst b/tests/scenario_sale_complaint.rst index 9a93e0d6fc..674ec73003 100644 --- a/tests/scenario_sale_complaint.rst +++ b/tests/scenario_sale_complaint.rst @@ -66,21 +66,17 @@ 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.salable = 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::