From 05f2617d1b90c053574ff7cd3597c9fa398b37f0 Mon Sep 17 00:00:00 2001 From: "JMA,VRA" <> Date: Tue, 21 Sep 2010 17:08:21 +0530 Subject: [PATCH] [FIX] Product : fixes after yml test and -init mode test bzr revid: jvo@tinyerp.com-20100921113821-o87lknzsyhu1k0mc --- addons/product/product_demo.xml | 43 ++++++-------------------- addons/product/test/product_report.yml | 2 +- addons/sale/sale_demo.xml | 42 +++++++++++++++++++++++++ addons/stock/stock.py | 2 +- 4 files changed, 54 insertions(+), 35 deletions(-) diff --git a/addons/product/product_demo.xml b/addons/product/product_demo.xml index 155e759a549..cbc1f4d458a 100644 --- a/addons/product/product_demo.xml +++ b/addons/product/product_demo.xml @@ -463,18 +463,17 @@ Restaurant Expenses - - WORK - produce - service - + WORK + produce + service + - 20.0 + 20.0 Worker @@ -486,15 +485,12 @@ buy 10.0 - - - Rear Panel SHE100 - + + + Rear Panel SHE100 - - + + RPAN200 @@ -504,9 +500,6 @@ Returning customers (0.00) : 0.99'" name="pricelist_sale"/> Rear Panel SHE200 - @@ -519,9 +512,6 @@ Returning customers (0.00) : 0.99'" name="pricelist_sale"/> Side Panel - @@ -534,9 +524,6 @@ Returning customers (0.00) : 0.99'" name="pricelist_sale"/> Rack 100cm - @@ -549,9 +536,6 @@ Returning customers (0.00) : 0.99'" name="pricelist_sale"/> Rack 200cm - @@ -576,9 +560,6 @@ Returning customers (0.00) : 0.99'" name="pricelist_sale"/> Wood Lintel 4m - @@ -590,9 +571,6 @@ Returning customers (0.00) : 0.99'" name="pricelist_sale"/> Metal Cleats - @@ -607,7 +585,6 @@ Returning customers (0.00) : 0.99'" name="pricelist_sale"/> Hotel Expenses - diff --git a/addons/product/test/product_report.yml b/addons/product/test/product_report.yml index 6e80083f66b..de86f392e5b 100644 --- a/addons/product/test/product_report.yml +++ b/addons/product/test/product_report.yml @@ -3,7 +3,7 @@ - !python {model: product.product}: | import netsvc, tools, os - data_dict = {'model': 'product.price_list'} + data_dict = {'model': 'product.product'} data_dict['form'] = { 'qty1': 1, 'qty2': 5, diff --git a/addons/sale/sale_demo.xml b/addons/sale/sale_demo.xml index cd0fdbd682f..a6cfc961600 100644 --- a/addons/sale/sale_demo.xml +++ b/addons/sale/sale_demo.xml @@ -193,6 +193,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/addons/stock/stock.py b/addons/stock/stock.py index b1f31294a97..ed93388df54 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1450,7 +1450,7 @@ class stock_move(osv.osv): 'date': fields.datetime('Creation Date', select=True), 'date_planned': fields.datetime('Date', required=True, help="Scheduled date for the movement of the products or real date if the move is done."), 'date_expected': fields.datetime('Date Expected', readonly=True,required=True, help="Scheduled date for the movement of the products"), - 'product_id': fields.many2one('product.product', 'Product', required=True, select=True), + 'product_id': fields.many2one('product.product', 'Product', required=True, select=True, domain=[('type','<>','service')]), 'product_qty': fields.float('Quantity', required=True), 'product_uom': fields.many2one('product.uom', 'Unit of Measure', required=True),