diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py
index f3bdbaa0240..fe03b179b2a 100644
--- a/addons/account/models/account_move.py
+++ b/addons/account/models/account_move.py
@@ -5719,6 +5719,16 @@ class AccountMoveLine(models.Model):
action['domain'] = [('id', 'in', ids)]
return action
+ def open_move(self):
+ return {
+ 'type': 'ir.actions.act_window',
+ 'res_model': 'account.move',
+ 'view_mode': 'form',
+ 'res_id': self.move_id.id,
+ 'views': [(False, 'form')],
+ }
+
+
def action_automatic_entry(self):
action = self.env['ir.actions.act_window']._for_xml_id('account.account_automatic_entry_wizard_action')
# Force the values of the move line in the context to avoid issues
diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml
index 472bbeda5bb..35170fdb06d 100644
--- a/addons/account/views/account_move_views.xml
+++ b/addons/account/views/account_move_views.xml
@@ -150,9 +150,9 @@
account.move.line
-
-
-
+
+
+
@@ -161,19 +161,41 @@
-
-
-
-
-
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -192,7 +214,7 @@
domain="[('company_id', '=', company_id)]"
groups="account.group_account_readonly"/>
-
+
@@ -221,9 +243,6 @@
-
-
-
@@ -381,6 +400,9 @@
+
+
+
@@ -1410,7 +1432,7 @@
account.move.line
[('display_type', 'not in', ('line_section', 'line_note'))]
- tree,pivot,graph,form,kanban
+ tree,pivot,graph,kanban
@@ -1483,7 +1505,7 @@
account.move.line
[('display_type', 'not in', ('line_section', 'line_note')), ('parent_state', '!=', 'cancel')]
- tree,pivot,graph,form,kanban
+ tree,pivot,graph,kanban