=== modified file 'delivery/stock.py' --- delivery/stock.py 2010-03-22 09:13:01 +0000 +++ delivery/stock.py 2010-08-26 16:29:00 +0000 @@ -74,7 +74,7 @@ } def action_invoice_create(self, cursor, user, ids, journal_id=False, - group=False, type='out_invoice', context=None): + group=False, type='out_invoice', context=None): invoice_obj = self.pool.get('account.invoice') picking_obj = self.pool.get('stock.picking') carrier_obj = self.pool.get('delivery.carrier') @@ -133,6 +133,9 @@ 'quantity': 1, 'invoice_line_tax_id': [(6, 0,taxes_ids)], }) + + #again , compute invoice to recalculate taxes, totals taking care lines added. + invoice_obj.button_compute(cursor, user,invoice_ids, context=context, set_total=(type in ('in_invoice', 'in_refund'))) return result stock_picking()