From d9a4f1a4fbfccddb9053994b54aa3655c2f0448d Mon Sep 17 00:00:00 2001 From: Swapnesh Shah Date: Sat, 4 Apr 2020 11:16:16 +0000 Subject: [PATCH] [FIX] account: disable creation of account.move.line in any view Creating new `account.move.line` is already blocked at List/Form view but it was not disabled at Kanban views since it is needed for mobile views. Creating new AML from Kanban leads to traceback due to the required field. In this commit, we pass `'create':0` in the action so user can not create new AML from any view. closes odoo/odoo#49244 X-original-commit: 1db71a9968b09bc56eff11e54d4e5b52693196cf 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 742379023e8..600bdc69f31 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -1167,7 +1167,7 @@ view_id="account.view_move_line_tax_audit_tree"/> - {'journal_type':'general', 'search_default_group_by_move': 1, 'search_default_posted':1, 'name_groupby':1} + {'journal_type':'general', 'search_default_group_by_move': 1, 'search_default_posted':1, 'name_groupby':1, 'create':0} Journal Items account.move.line [('display_type', 'not in', ('line_section', 'line_note'))]