[FIX] tax in invoice is not calculated automatically while invoice created from sale...
authorSebastien LANGE <sebastien.lange@syleam.fr>
Sat, 17 Nov 2012 20:38:58 +0000 (21:38 +0100)
committerSebastien LANGE <sebastien.lange@syleam.fr>
Sat, 17 Nov 2012 20:38:58 +0000 (21:38 +0100)
bzr revid: sebastien.lange@syleam.fr-20121117203858-7yx8fu3kk7plvk42

addons/sale_stock/stock.py

index 6fc5c06..b80b496 100644 (file)
@@ -184,6 +184,7 @@ class stock_picking(osv.osv):
                         '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