Mayur Maheshwari(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-opw-580751-port-mma into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-580751-port-mma/+merge/136386

Hello,

     I have fixes the issue of tax in invoice is not calculated automatically 
while invoice created from sale order

Steps:-
1). Create an sale order and set configuration invoice based on delivery
2). Now add 2 product(1 stackable & 1 service and add tax in both line)
3). Confirm sale order go to picking and generate invoice and try to validate 
the invoice.

    You will get the warning message to compute the tax again. It should 
computed automatically.
    code is forward port from 6.1

Thanks,
Mayur
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-580751-port-mma/+merge/136386
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-opw-580751-port-mma.
=== modified file 'sale_stock/stock.py'
--- sale_stock/stock.py	2012-10-05 13:03:08 +0000
+++ sale_stock/stock.py	2012-11-27 12:14:28 +0000
@@ -184,6 +184,7 @@
                         'invoiced': True,
                         'invoice_lines': [(6, 0, [invoice_line_id])],
                     })
+                    invoice_obj.button_compute(cursor, user, [invoice_created.id], context=context)
         return result
 
 # Redefinition of the new field in order to update the model stock.picking.out in the orm

_______________________________________________
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