------------------------------------------------------------
revno: 7050
committer: Jacob Hicks <[email protected]>
branch nick: addons
timestamp: Tue 2013-10-01 08:54:10 +0100
message:
  [FIX] Include delivery lines in invoice tax calculation
  By re-computing taxes after each picking
modified:
  delivery/stock.py


--
lp:~credativ/openobject-addons/6.1
https://code.launchpad.net/~credativ/openobject-addons/6.1

Your team credativ is subscribed to branch lp:~credativ/openobject-addons/6.1.
To unsubscribe from this branch go to 
https://code.launchpad.net/~credativ/openobject-addons/6.1/+edit-subscription
=== modified file 'delivery/stock.py'
--- delivery/stock.py	2011-12-21 18:11:49 +0000
+++ delivery/stock.py	2013-10-01 07:54:10 +0000
@@ -131,6 +131,8 @@
             if invoice_line:
                 invoice_line_obj.create(cr, uid, invoice_line)
                 invoice_obj.button_compute(cr, uid, [invoice.id], context=context)
+            if invoice and invoice.id:
+                invoice_obj.button_compute(cr, uid, [invoice.id], context=context)
         return result
 
 stock_picking()

-- 
Mailing list: https://launchpad.net/~credativ
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~credativ
More help   : https://help.launchpad.net/ListHelp

Reply via email to