From bd3fbd282d3e696c1c495580a329f7d0ff9133f5 Mon Sep 17 00:00:00 2001 From: cod-odoo Date: Wed, 22 Jul 2015 18:11:07 +0530 Subject: [PATCH] [FIX]Fixed tax sequnce issue on result of computed tax. --- addons/account/models/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account.py b/addons/account/models/account.py index 611437a76c8..c6b6d4978f5 100644 --- a/addons/account/models/account.py +++ b/addons/account/models/account.py @@ -600,7 +600,7 @@ class AccountTax(models.Model): }) return { - 'taxes': taxes, + 'taxes': sorted(taxes, key=lambda k: k['sequence']), 'total_excluded': currency.round(total_excluded), 'total_included': currency.round(total_included), }