From e2df5a54dd3e100e474b8055c93d6b9815535f36 Mon Sep 17 00:00:00 2001 From: "DBR (OpenERP)" Date: Thu, 8 Dec 2011 17:55:47 +0530 Subject: [PATCH] [IMP]stock: Minore changes. bzr revid: dbr@tinyerp.com-20111208122547-5u186k9917fgvahc --- addons/stock/test/stock_report.yml | 11 ++++++----- addons/stock/test/stock_update.yml | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/addons/stock/test/stock_report.yml b/addons/stock/test/stock_report.yml index 93e9f35df43..2d21282ec0b 100644 --- a/addons/stock/test/stock_report.yml +++ b/addons/stock/test/stock_report.yml @@ -1,5 +1,5 @@ - - In order to test the PDF reports defined on a stock, we will print a Stock Overviewall(children) report + In order to test the PDF reports defined on a stock, we will print a Stock Overviewall(children) report. - !python {model: stock.location}: | import netsvc, tools, os @@ -7,7 +7,7 @@ if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'stock-overviewall'+format), 'wb+').write(data) - - In order to test the PDF reports defined on stock inventory, we will print a Stock Inventory Move report + In order to test the PDF reports defined on stock inventory, we will print a Stock Inventory Move report. - !python {model: stock.inventory}: | import netsvc, tools, os @@ -15,7 +15,7 @@ if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'stock-stock_inventory_move.'+format), 'wb+').write(data) - - In order to test the PDF reports defined on a stock, we will print a Stock Overview report + In order to test the PDF reports defined on a stock, we will print a stock overview report. - !python {model: stock.location}: | import netsvc, tools, os @@ -23,7 +23,7 @@ if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'stock-overview'+format), 'wb+').write(data) - - In order to test the PDF reports defined on a stock, we will print a Delivery order List report + In order to test the PDF reports defined on a stock, we will print a Delivery order List report. - !python {model: stock.picking}: | import netsvc, tools, os @@ -31,10 +31,11 @@ if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'stock-picking_list'+format), 'wb+').write(data) - - In order to test the PDF reports defined on a Stock, we will print Product Stock Report + In order to test the PDF reports defined on a stock, we will print product stock Report. - !python {model: product.product}: | import netsvc, tools, os (data, format) = netsvc.LocalService('report.stock.product.history').create(cr, uid, [ref('product.product_product_pc1')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'stock-product_stock_report.'+format), 'wb+').write(data) + diff --git a/addons/stock/test/stock_update.yml b/addons/stock/test/stock_update.yml index 5f190c26578..2d748c5f4ac 100644 --- a/addons/stock/test/stock_update.yml +++ b/addons/stock/test/stock_update.yml @@ -50,7 +50,7 @@ new_id = self.copy(cr, uid, ref('stock.stock_picking_1'), context) context.update({'new_id':new_id}) - - Now,I return the delivery order. + Now,I return the products. - !python {model: stock.picking}: | copy_id = context.get('new_id')