[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) <tde@openerp.com>
This commit is contained in:
Florian Charlier
2022-10-06 15:57:52 +02:00
parent 9b07a00fb4
commit c37c16c95d
+1 -1
View File
@@ -55,7 +55,7 @@
<field name="can_write" invisible="1"/>
<field name="body_html" widget="html" class="oe-bordered-editor"
options="{'style-inline': true, 'codeview': true }"
attrs="{'readonly': [('can_write', '=', False)]}"/>
attrs="{'readonly': [('can_write', '=', False), ('id', '!=', False)]}"/>
<field name="attachment_ids" widget="many2many_binary"/>
</page>
<page string="Email Configuration" name="email_configuration">