-
-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP]mail_quoted_reply: Separate reply body
For long replies the message composer gets extremely laggy and slow. To prevent that the reply body is stored in a separate field.
- Loading branch information
1 parent
6217fff
commit 7a8dee2
Showing
4 changed files
with
90 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<record id="mail_quoted_reply_composer_view_form" model="ir.ui.view"> | ||
<field name="model">mail.compose.message</field> | ||
<field name="inherit_id" ref="mail.email_compose_message_wizard_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='body']" position="after"> | ||
<field name="is_separate_body" invisible="1" /> | ||
<field | ||
name="reply_body" | ||
attrs="{'readonly': [('is_reply_readonly', '=', True)], 'invisible': [('is_separate_body', '=', False)]}" | ||
force_save="1" | ||
/> | ||
<label | ||
for="is_reply_readonly" | ||
attrs="{'invisible': [('is_separate_body', '=', False)]}" | ||
/> | ||
<field | ||
name="is_reply_readonly" | ||
widget="boolean_toggle" | ||
attrs="{'invisible': [('is_separate_body', '=', False)]}" | ||
/> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |