From ccc211ba803c3e9859c92363b4bb8c917d5a87bc Mon Sep 17 00:00:00 2001 From: "Maruan Aguerdouh (magm)" Date: Fri, 16 Dec 2022 13:06:22 +0000 Subject: [PATCH] [FIX] account: accessing payment through invoice showing proper dropdown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit action options Steps to reproduce: - Install Accounting - Go to Accounting > Create New Invoice > Fill it and confirm. - Reister a payment for the invoice. - Click on the "i" icon next to the total (bottom right). - And in the popup window click on "View" Issue: When we open the payment from the invoice, the dropdown action options are not properly displayed, we cannot delete or duplicate the payment until we refresh the page. Solution: We removed the context (which was setting some options to false) from the action that is used to open the payment through that view. opw-3092601 closes odoo/odoo#108963 X-original-commit: 7aa635fe74a8593379bc62466ea99af26eae3b52 Signed-off-by: William André (wan) --- addons/account/models/account_move.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 756de36d3ed..16bad96e441 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -3373,10 +3373,6 @@ class AccountMove(models.Model): 'views': [(False, 'form')], 'res_model': res_model, 'res_id': res_id, - 'context': { - 'create': False, - 'delete': False, - }, 'target': 'current', }