From a0e0e14b70bb60d12f03faa8b80ae16ac1157bb5 Mon Sep 17 00:00:00 2001 From: qdp-odoo Date: Fri, 4 Nov 2016 10:13:20 +0100 Subject: [PATCH] [FIX] account: fix manual reconciliation with a writeoff that includes a tax. The tax has to be only on the second line because otherwise the accounting entry is not correct. Note that I'm not sure it is a usefull use case, but at least the accounting entry of the w/o is now logical and corresponds to what you expect (and what you see on screen). OPW 689806 --- addons/account/models/account_move.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index df2cc859baa..9ee01e8f251 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -918,6 +918,8 @@ class AccountMoveLine(models.Model): first_line_dict['account_id'] = self[0].account_id.id if 'analytic_account_id' in first_line_dict: del first_line_dict['analytic_account_id'] + if 'tax_ids' in first_line_dict: + del first_line_dict['tax_ids'] # Writeoff line in specified writeoff account second_line_dict = vals.copy()