From 386aee4aeb9a44cbd2c27eca1b3ff2d270df280b Mon Sep 17 00:00:00 2001 From: "uco (Open ERP)" Date: Tue, 7 Sep 2010 11:26:58 +0530 Subject: [PATCH] [FIX] mrp: On the Production Order tree view 'Group By' doesn't make the sum for 'Total Hours' and 'Total Cycle' columns. bzr revid: uco@tinyerp.com-20100907055658-y1m9caut175bndbz --- addons/mrp/mrp.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index fad20da2589..8421d8ba5b5 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -467,9 +467,8 @@ class mrp_production(osv.osv): 'state': fields.selection([('draft','Draft'),('picking_except', 'Picking Exception'),('confirmed','Waiting Goods'),('ready','Ready to Produce'),('in_production','In Production'),('cancel','Cancelled'),('done','Done')],'State', readonly=True, help='When the production order is created the state is set to \'Draft\'.\n If the order is confirmed the state is set to \'Waiting Goods\'.\n If any exceptions are there, the state is set to \'Picking Exception\'.\ \nIf the stock is available then the state is set to \'Ready to Produce\'.\n When the production gets started then the state is set to \'In Production\'.\n When the production is over, the state is set to \'Done\'.'), - 'hour_total': fields.function(_production_calc, method=True, type='float', string='Total Hours', multi='workorder'), - 'cycle_total': fields.function(_production_calc, method=True, type='float', string='Total Cycles', multi='workorder'), - + 'hour_total': fields.function(_production_calc, method=True, type='float', string='Total Hours', multi='workorder', store=True), + 'cycle_total': fields.function(_production_calc, method=True, type='float', string='Total Cycles', multi='workorder', store=True), 'company_id': fields.many2one('res.company','Company',required=True), } _defaults = {