From 4d4557b596b3215474aecb20c7717fd6307ddec6 Mon Sep 17 00:00:00 2001 From: "Achraf (abz)" Date: Wed, 5 May 2021 09:02:51 +0000 Subject: [PATCH] [FIX] account: Prevent user to change product via journal items after posting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit What are the steps to reproduce your issue ? 1. Go to Account/Journal Items 2. Open a posted item 3. Change product What is currently happening ? The product is changed in the account move What are you expecting to happen ? The account move lines cannot be changed when the status is posted How to fix the bug ? Make the field read-only when the status is posted opw-2517325 closes odoo/odoo#70533 X-original-commit: 1b8f7ad00e9274b4b8f82ef77864997286611593 Signed-off-by: Achraf Signed-off-by: William André (wan) --- addons/account/views/account_move_views.xml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index 514bc74b94e..f6213e67916 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -18,19 +18,19 @@ + readonly="1"/> - - - - + + + + - + @@ -42,7 +42,7 @@ - + @@ -64,7 +64,7 @@ - + @@ -72,7 +72,7 @@ + readonly="1"/> @@ -997,7 +997,7 @@ - +