[IMP]stock: Improve the report yml file
bzr revid: dbr@tinyerp.com-20111129065012-xc7ekx1sadvwi2t3
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
-
|
||||
|
||||
@@ -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)
|
||||
-
|
||||
|
||||
Reference in New Issue
Block a user