From 3fbcdf1b91d438ab85f0c639dcfaa40bbcf8f206 Mon Sep 17 00:00:00 2001 From: oco-odoo Date: Thu, 27 Aug 2020 14:46:02 +0000 Subject: [PATCH] [FIX] 13.0: Fix account domain on account.move.line A deprecated account should not be selectable by the user when creating a new move. Related issue: https://github.com/odoo/odoo/issues/56586 closes odoo/odoo#56696 X-original-commit: 114b9d2c7b858b9cc8bc8d82239f6fe53290d58f Signed-off-by: Laurent Smet --- addons/account/views/account_move_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index c0d7d5d3e08..f16e766cf11 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -909,7 +909,7 @@ 'required': [('display_type', 'not in', ('line_section', 'line_note'))], 'invisible': [('display_type', 'in', ('line_section', 'line_note'))], }" - domain="[('company_id', '=', parent.company_id)]" /> + domain="[('deprecated', '=', False), ('company_id', '=', parent.company_id)]" />