[IMP]stock: Minore changes.

bzr revid: dbr@tinyerp.com-20111208122547-5u186k9917fgvahc
This commit is contained in:
DBR (OpenERP)
2011-12-08 17:55:47 +05:30
parent 24e7384ef1
commit e2df5a54dd
2 changed files with 7 additions and 6 deletions
+6 -5
View File
@@ -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)
+1 -1
View File
@@ -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')