From c21101c1619322b74c337a233478057ec06cdb6b Mon Sep 17 00:00:00 2001 From: "Hubert Van de Walle (huvw)" Date: Thu, 14 Jul 2022 12:59:10 +0000 Subject: [PATCH] [FIX] account: mobile: unable to add lines to misc journal Steps to reproduce: - Load odoo on a small screen / mobile phone - Go to accounting > Miscellaneous Operations - Click on create -> The button to add a line in Journal Items is missing Cause of the issue: On mobile, the kanban view is used for Journal Items The kanban view used [0] has an attribute `create="false"` Solution: Override the `create` attribute when the kanban view is a subview [0]: https://github.com/odoo/odoo/blob/93520cc291ffb76dd1425e413f29653df37b4062/addons/account/views/account_move_views.xml#L94 opw-2870637 closes odoo/odoo#96484 X-original-commit: 31ac34816e61d66479dbd11ebb9c5348c3f12886 Signed-off-by: Christophe Simonis Signed-off-by: Hubert Van De Walle --- addons/account/views/account_move_views.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index e0d53afbc34..64ae7ca4a5a 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -133,6 +133,18 @@ + + + primary + account.move.line + account.move.line.kanban.mobile + + + true + + + + account.move.line.pivot account.move.line @@ -1044,7 +1056,7 @@