From 51e9f90981d08d55c603b2fc21c8b9c8621a9a35 Mon Sep 17 00:00:00 2001 From: Arthur Maniet Date: Mon, 16 Feb 2015 14:20:55 +0100 Subject: [PATCH] [FIX] account: avoid 0.0 tax lines Don't create useless journal entries for taxes whose amount is 0.0. Keep tax code lines creation unmodified. Fixes #5036, opw 627055 --- addons/account/account_move_line.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 95419811206..fc0cf781947 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -1374,6 +1374,8 @@ class account_move_line(osv.osv): } self.create(cr, uid, data, context) #create the Tax movement + if not tax['amount']: + continue data = { 'move_id': vals['move_id'], 'name': tools.ustr(vals['name'] or '') + ' ' + tools.ustr(tax['name'] or ''),