credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #05505
[Branch ~credativ/openobject-addons/6.1] Rev 7050: [FIX] Include delivery lines in invoice tax calculation
------------------------------------------------------------
revno: 7050
committer: Jacob Hicks <jacob.hicks@xxxxxxxxxxxxxx>
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()