[IMP] change data of stock_report.yml

bzr revid: fka@tinyerp.com-20130228064338-r93gtraqgrfc76mc
This commit is contained in:
Foram Katharotiya (OpenERP) 2013-02-28 12:13:38 +05:30
parent 4de42a4254
commit 506b7c9c64
3 changed files with 7 additions and 7 deletions

View File

@ -93,7 +93,7 @@ Dashboard / Reports for Warehouse Management will include:
'stock_demo.yml',
'test/opening_stock.yml',
'test/shipment.yml',
#'test/stock_report.yml',
'test/stock_report.yml',
],
'installable': True,
'application': True,

View File

@ -192,8 +192,8 @@
-
!python {model: stock.location}: |
ctx = {'product_id': ref('product_product_6')}
refrigerator_location = self.pool.get('stock.location').browse(cr, uid, ref('location_monitor'), context=ctx)
assert refrigerator_location.stock_real == 136.0, 'stock does not correspond in stock location shop0.'
monitor_location = self.pool.get('stock.location').browse(cr, uid, ref('location_monitor'), context=ctx)
assert monitor_location.stock_real == 136.0, 'stock does not correspond in stock location shop0.'
scrapped_location = self.browse(cr, uid, ref('stock_location_scrapped'), context=ctx)
assert scrapped_location.stock_real == 1*4, 'scraped stock does not correspond in scrap location.'

View File

@ -4,7 +4,7 @@
!python {model: stock.location}: |
import os
from openerp import netsvc, tools
(data, format) = netsvc.LocalService('report.lot.stock.overview').create(cr, uid, [ref('location_refrigerator')], {}, {})
(data, format) = netsvc.LocalService('report.lot.stock.overview').create(cr, uid, [ref('location_monitor')], {}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'stock-overview'+format), 'wb+').write(data)
-
@ -13,7 +13,7 @@
!python {model: stock.location}: |
import os
from openerp import netsvc, tools
(data, format) = netsvc.LocalService('report.lot.stock.overview_all').create(cr, uid, [ref('location_refrigerator')], {}, {})
(data, format) = netsvc.LocalService('report.lot.stock.overview_all').create(cr, uid, [ref('location_monitor')], {}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'stock-overviewall'+format), 'wb+').write(data)
-
@ -22,7 +22,7 @@
!python {model: stock.inventory}: |
import os
from openerp import netsvc, tools
(data, format) = netsvc.LocalService('report.stock.inventory.move').create(cr, uid, [ref('stock_inventory_icecream')], {}, {})
(data, format) = netsvc.LocalService('report.stock.inventory.move').create(cr, uid, [ref('stock_inventory_0')], {}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'stock-stock_inventory_move.'+format), 'wb+').write(data)
-
@ -40,7 +40,7 @@
!python {model: product.product}: |
import os
from openerp import netsvc, tools
(data, format) = netsvc.LocalService('report.stock.product.history').create(cr, uid, [ref('product_icecream')], {}, {})
(data, format) = netsvc.LocalService('report.stock.product.history').create(cr, uid, [ref('product_product_6')], {}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'stock-product_stock_report.'+format), 'wb+').write(data)