From c37c16c95dbebbe54f42bce16a30b5e648d8d4d2 Mon Sep 17 00:00:00 2001 From: Florian Charlier Date: Fri, 30 Sep 2022 09:37:35 +0000 Subject: [PATCH] [FIX] mail: fix readonly body on new template Purpose: restore edit access to body when creating a new template. Likely introduced by 2bb148f9. Task-3002242 closes odoo/odoo#102326 X-original-commit: 506e6cc8383236432947045afdcea7bc3555bc16 Signed-off-by: Thibault Delavallee (tde) --- addons/mail/views/mail_template_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/views/mail_template_views.xml b/addons/mail/views/mail_template_views.xml index 4c9e837af57..027b095ae9e 100644 --- a/addons/mail/views/mail_template_views.xml +++ b/addons/mail/views/mail_template_views.xml @@ -55,7 +55,7 @@ + attrs="{'readonly': [('can_write', '=', False), ('id', '!=', False)]}"/>