diff --git a/product.xml b/product.xml index db4a307dda..70184cd889 100644 --- a/product.xml +++ b/product.xml @@ -3,10 +3,10 @@ this repository contains the full copyright notices and license terms. --> - - product.product - - product_form + + product.template + + template_form diff --git a/tests/scenario_stock_lot_shipment_out.rst b/tests/scenario_stock_lot_shipment_out.rst index ab7cfca700..8a8b2e2558 100644 --- a/tests/scenario_stock_lot_shipment_out.rst +++ b/tests/scenario_stock_lot_shipment_out.rst @@ -31,10 +31,13 @@ Create company:: >>> Currency = Model.get('currency.currency') >>> CurrencyRate = Model.get('currency.currency.rate') >>> Company = Model.get('company.company') + >>> Party = Model.get('party.party') >>> company_config = Wizard('company.company.config') >>> company_config.execute('company') >>> company = company_config.form - >>> company.name = 'B2CK' + >>> party = Party(name='B2CK') + >>> party.save() + >>> company.party = party >>> currencies = Currency.find([('code', '=', 'EUR')]) >>> if not currencies: ... currency = Currency(name='Euro', symbol=u'€', code='EUR', @@ -63,14 +66,18 @@ Create customer:: Create product:: >>> ProductUom = Model.get('product.uom') + >>> ProductTemplate = Model.get('product.template') >>> Product = Model.get('product.product') >>> unit, = ProductUom.find([('name', '=', 'Unit')]) >>> product = Product() - >>> product.name = 'Product' - >>> product.default_uom = unit - >>> product.type = 'goods' - >>> product.list_price = Decimal('20') - >>> product.cost_price = Decimal('8') + >>> template = ProductTemplate() + >>> template.name = 'Product' + >>> template.default_uom = unit + >>> template.type = 'goods' + >>> template.list_price = Decimal('20') + >>> template.cost_price = Decimal('8') + >>> template.save() + >>> product.template = template >>> product.save() Get stock locations:: diff --git a/view/product_form.xml b/view/template_form.xml similarity index 100% rename from view/product_form.xml rename to view/template_form.xml