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 @@ - - - - - + + + + + - - + + + + + +