[FIX]stock:remove unnecessary function

bzr revid: ssu@tinyerp.com-20120611084628-musbyk3jhlg1ulaj
This commit is contained in:
Saurang Suthar (OpenERP)
2012-06-11 14:16:28 +05:30
parent fd4cb45dfd
commit bc23c8b727
-7
View File
@@ -29,14 +29,7 @@ class picking(report_sxw.rml_parse):
super(picking, self).__init__(cr, uid, name, context=context)
self.localcontext.update({
'time': time,
'get_qtytotal':self._get_qtytotal
})
def _get_qtytotal(self,move_lines):
total = 0.0
uom = move_lines[0].product_uom.name
for move in move_lines:
total+=move.product_qty
return {'quantity':total,'uom':uom}
report_sxw.report_sxw('report.stock.picking.list','stock.picking','addons/stock/report/picking.rml',parser=picking)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: