-
-
Notifications
You must be signed in to change notification settings - Fork 633
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 324d950
Showing
8 changed files
with
109 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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
This addon allow to reply on messages from odoo directly. | ||
It is useful when replying to a message from a customer. | ||
|
||
Additionally, it is possible to separate the reply body from the mail body. | ||
This separation is only for the composer and the sent mail will contain both parts. |
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 |
---|---|---|
@@ -1,2 +1,6 @@ | ||
On the messages from threads, a reply button is shown. | ||
Once it has been pressed, a composer with the reply is shown. | ||
|
||
To activate the separation of the reply body add the system parameter "mail_quoted_reply.separate_reply_body". | ||
After opening a composer with the reply button the reply body will be shown below the mail body as readonly. | ||
To write into the reply body uncheck "Reply Readonly". For longer replies this can take some time. |
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> |