2 I print a stock overview report of location.
4 !python {model: stock.location}: |
6 from openerp import netsvc, tools
7 (data, format) = netsvc.LocalService('report.lot.stock.overview').create(cr, uid, [ref('location_refrigerator')], {}, {})
8 if tools.config['test_report_directory']:
9 file(os.path.join(tools.config['test_report_directory'], 'stock-overview'+format), 'wb+').write(data)
11 I print a Stock Overview report of location with child location.
13 !python {model: stock.location}: |
15 from openerp import netsvc, tools
16 (data, format) = netsvc.LocalService('report.lot.stock.overview_all').create(cr, uid, [ref('location_refrigerator')], {}, {})
17 if tools.config['test_report_directory']:
18 file(os.path.join(tools.config['test_report_directory'], 'stock-overviewall'+format), 'wb+').write(data)
20 I print a Stock Inventory report.
22 !python {model: stock.inventory}: |
24 from openerp import netsvc, tools
25 (data, format) = netsvc.LocalService('report.stock.inventory.move').create(cr, uid, [ref('stock_inventory_icecream')], {}, {})
26 if tools.config['test_report_directory']:
27 file(os.path.join(tools.config['test_report_directory'], 'stock-stock_inventory_move.'+format), 'wb+').write(data)
29 I print a outgoing shipment report.
31 !python {model: stock.picking}: |
33 from openerp import netsvc, tools
34 (data, format) = netsvc.LocalService('report.stock.picking.list').create(cr, uid, [ref('outgoing_shipment')], {}, {})
35 if tools.config['test_report_directory']:
36 file(os.path.join(tools.config['test_report_directory'], 'stock-picking_list'+format), 'wb+').write(data)
40 !python {model: product.product}: |
42 from openerp import netsvc, tools
43 (data, format) = netsvc.LocalService('report.stock.product.history').create(cr, uid, [ref('product_icecream')], {}, {})
44 if tools.config['test_report_directory']:
45 file(os.path.join(tools.config['test_report_directory'], 'stock-product_stock_report.'+format), 'wb+').write(data)