Xavier ALT (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-381524-xal into 
lp:openobject-addons/6.1.

Requested reviews:
  OpenERP R&D Team (openerp-dev)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-381524-xal/+merge/96181

Hi,

This is a forward-port of OPW 381524

When invoicing picking, do not invoice scrapped products.

Thanks,
Xavier
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-381524-xal/+merge/96181
Your team OpenERP R&D Team is requested to review the proposed merge of 
lp:~openerp-dev/openobject-addons/6.1-opw-381524-xal into 
lp:openobject-addons/6.1.
=== modified file 'stock/stock.py'
--- stock/stock.py	2012-02-15 18:00:28 +0000
+++ stock/stock.py	2012-03-06 16:52:20 +0000
@@ -1104,6 +1104,9 @@
             for move_line in picking.move_lines:
                 if move_line.state == 'cancel':
                     continue
+                if move_line.scrapped:
+                    # do no invoice scrapped products
+                    continue
                 vals = self._prepare_invoice_line(cr, uid, group, picking, move_line,
                                 invoice_id, invoice_vals, context=context)
                 if vals:

_______________________________________________
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