Nehal Panchal (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-581961-nep into 
lp:openobject-addons/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-581961-nep/+merge/136364

Hello,

Steps to reproduce:
1. Create sales order with one line(invoice policy - Invoice based on 
deliveries)
2. Create another sales order with one line(invoice policy - Invoice based on 
deliveries)
3. Validate related picking.
4. Goto sales / Invoicing / Lines to invoice and select sales order lines and 
invoice.
The invoice is made for both but you can see one uninvoiced line of them and 
can create invoice again. Which is wrong behaviour.

This fixes the issue.

Code is backport from 6.1

Thanks

-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-581961-nep/+merge/136364
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-581961-nep.
=== modified file 'sale/wizard/sale_line_invoice.py'
--- sale/wizard/sale_line_invoice.py	2011-12-19 16:54:40 +0000
+++ sale/wizard/sale_line_invoice.py	2012-11-27 10:52:21 +0000
@@ -106,7 +106,7 @@
                     flag = False
                     break
             if flag:
-                wf_service.trg_validate(uid, 'sale.order', line.order_id.id, 'all_lines', cr)
+                wf_service.trg_validate(uid, 'sale.order', line.order_id.id, 'manual_invoice', cr)
                 sales_order_obj.write(cr, uid, [line.order_id.id], {'state': 'progress'})
 
         if not invoices:

_______________________________________________
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