Saurang Suthar(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-930209-ssu into 
lp:openobject-addons.

Requested reviews:
  Numérigraphe (numerigraphe)
  Purnendu Singh (OpenERP) (psi-tinyerp)
  Saurang Suthar(OpenERP) (ssu-openerp)
Related bugs:
  Bug #930209 in OpenERP Addons: "Packing list adds quantities without 
verifying UoMs"
  https://bugs.launchpad.net/openobject-addons/+bug/930209

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-930209-ssu/+merge/109579

Hello sir,

I have cleaned up the code by removing _get_qtytotal() from picking.py file.

Thank you.
Saurang Suthar
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-930209-ssu/+merge/109579
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-930209-ssu.
=== modified file 'stock/report/picking.py'
--- stock/report/picking.py	2011-01-14 00:11:01 +0000
+++ stock/report/picking.py	2012-06-11 08:51:30 +0000
@@ -29,14 +29,7 @@
         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:

=== modified file 'stock/report/picking.rml'
--- stock/report/picking.rml	2012-05-22 16:10:55 +0000
+++ stock/report/picking.rml	2012-06-11 08:51:30 +0000
@@ -299,21 +299,6 @@
         </tr>
       </blockTable>
     </section>
-    <blockTable colWidths="388.0,56.0,77.0" style="Table2">
-      <tr>
-        <td>
-          <para style="terp_default_9">
-            <font color="white"> </font>
-          </para>
-        </td>
-        <td>
-          <para style="terp_tblheader_Details_Centre">Total</para>
-        </td>
-        <td>
-          <para style="terp_tblheader_Details_Right">[[ formatLang(get_qtytotal(picking.move_lines)['quantity']) ]] [[ get_qtytotal(picking.move_lines)['uom'] ]]</para>
-        </td>
-      </tr>
-    </blockTable>
     <para style="terp_default_2">
       <font color="white"> </font>
     </para>

=== modified file 'stock/report/picking.sxw'
Binary files stock/report/picking.sxw	2012-05-16 16:01:15 +0000 and stock/report/picking.sxw	2012-06-11 08:51:30 +0000 differ
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to