Jignesh Rathod(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-1024193-jir into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1024193 in OpenERP Addons: "Wrong journal entry when more then one taxes 
applied on product with analytic plan"
  https://bugs.launchpad.net/openobject-addons/+bug/1024193

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1024193-jir/+merge/115322

Hello ,

when you create invoice with product that have two tax then it 
will create a wrong entry credit and debit with 0 and 
tax base amount greater then 0. 

Thank you!


-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1024193-jir/+merge/115322
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1024193-jir.
=== modified file 'account/account_invoice.py'
--- account/account_invoice.py	2012-07-14 23:18:43 +0000
+++ account/account_invoice.py	2012-07-17 11:47:34 +0000
@@ -951,7 +951,9 @@
                         _('You cannot create an invoice on a centralised journal. Uncheck the centralised counterpart box in the related journal from the configuration menu.'))
 
             line = self.finalize_invoice_move_lines(cr, uid, inv, line)
-
+            for rem_line in line:
+                if rem_line[2]['credit'] + rem_line[2]['debit'] == 0 and  rem_line[2]['tax_amount'] > 0:
+                    line.remove(rem_line)
             move = {
                 'ref': inv.reference and inv.reference or inv.name,
                 'line_id': line,

_______________________________________________
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