diff --git a/tests/scenario_invoice.rst b/tests/scenario_invoice.rst index dc99e44e86..14aca86ab7 100644 --- a/tests/scenario_invoice.rst +++ b/tests/scenario_invoice.rst @@ -84,20 +84,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 = 'service' >>> template.list_price = Decimal('40') - >>> template.cost_price = Decimal('25') >>> template.account_expense = expense >>> template.account_revenue = revenue >>> template.customer_taxes.append(tax) >>> template.save() - >>> product.template = template - >>> product.save() + >>> product, = template.products Create payment term:: diff --git a/tests/scenario_invoice_alternate_currency.rst b/tests/scenario_invoice_alternate_currency.rst index 7bdf33e942..fe1ec5b9e7 100644 --- a/tests/scenario_invoice_alternate_currency.rst +++ b/tests/scenario_invoice_alternate_currency.rst @@ -93,20 +93,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 = 'service' >>> template.list_price = Decimal('40') - >>> template.cost_price = Decimal('25') >>> template.account_expense = expense >>> template.account_revenue = revenue >>> template.customer_taxes.append(tax) >>> template.save() - >>> product.template = template - >>> product.save() + >>> product, = template.products Create invoice with alternate currency:: diff --git a/tests/scenario_invoice_supplier.rst b/tests/scenario_invoice_supplier.rst index 48704920ab..9c0c213e0b 100644 --- a/tests/scenario_invoice_supplier.rst +++ b/tests/scenario_invoice_supplier.rst @@ -61,20 +61,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 = 'service' >>> template.list_price = Decimal('40') - >>> template.cost_price = Decimal('20') >>> template.account_expense = expense >>> template.account_revenue = revenue >>> template.supplier_taxes.append(tax) >>> template.save() - >>> product.template = template - >>> product.save() + >>> product, = template.products Create payment term::