diff --git a/addons/sale_stock/sale_stock.py b/addons/sale_stock/sale_stock.py index 8f82f6dcc29..13ec4f9ba8c 100644 --- a/addons/sale_stock/sale_stock.py +++ b/addons/sale_stock/sale_stock.py @@ -424,6 +424,8 @@ class stock_move(osv.osv): fp = move.picking_id.sale_id.fiscal_position res = self.pool.get("account.invoice.line").product_id_change(cr, uid, [], move.product_id.id, None, partner_id=move.picking_id.partner_id.id, fposition_id=(fp and fp.id), context=context) extra_move_tax[0, move.product_id] = [(6, 0, res['value']['invoice_line_tax_id'])] + else: + extra_move_tax[0, move.product_id] = [(6, 0, [x.id for x in move.product_id.product_tmpl_id.taxes_id])] return (is_extra_move, extra_move_tax) def _get_taxes(self, cr, uid, move, context=None):