From 5339665806914bb469aea1bb4b66424d4d27a515 Mon Sep 17 00:00:00 2001
From: Arthur Maniet <arthurmaniet@me.com>
Date: Fri, 11 Dec 2015 11:57:02 +0100
Subject: [PATCH] [FIX] account: reconciliation widget's 'create writeoff' tax
 domain

Allow for both sale and purchase taxes since using a sale tax on a writeoff
makes sense in cash basis accounting.
---
 addons/account/static/src/js/account_reconciliation_widgets.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/addons/account/static/src/js/account_reconciliation_widgets.js b/addons/account/static/src/js/account_reconciliation_widgets.js
index bb815c653e00..5a0ab83e294a 100644
--- a/addons/account/static/src/js/account_reconciliation_widgets.js
+++ b/addons/account/static/src/js/account_reconciliation_widgets.js
@@ -128,7 +128,7 @@ var abstractReconciliation = Widget.extend(ControlPanelMixin, {
                     relation: "account.tax",
                     string: _t("Tax"),
                     type: "many2one",
-                    domain: [['type_tax_use','=','purchase']],
+                    domain: [['type_tax_use','!=','none']],
                 },
             },
             amount: {
-- 
GitLab