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')