diff options
| author | Aaron Bohy <aab@odoo.com> | 2016-04-28 16:35:14 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2016-05-03 10:34:41 +0200 |
| commit | de6fa69774dd81eb408b46be4fdadb314d6b91af (patch) | |
| tree | a2eaa8b662cb2fbdba479797e610919b1d6e6c6f /addons/mail/static/src/xml/composer.xml | |
| parent | 2264378739520fdc8b4c3967eebd4b35fff9f7fc (diff) | |
[ADD] mail: commands support
Use the mention mechanism to autocomplete on commands (keyword /).
A first command /help has been implemented.
Diffstat (limited to 'addons/mail/static/src/xml/composer.xml')
| -rw-r--r-- | addons/mail/static/src/xml/composer.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/mail/static/src/xml/composer.xml b/addons/mail/static/src/xml/composer.xml index 9e248755a56..ec7e0559d46 100644 --- a/addons/mail/static/src/xml/composer.xml +++ b/addons/mail/static/src/xml/composer.xml @@ -75,5 +75,11 @@ <span class="o_mention_info"><t t-esc="suggestion.substitution"/></span> </t> </t> + <t t-name="mail.MentionCommandSuggestions" t-extend="mail.AbstractMentionSuggestions"> + <t t-jquery=".o_mention_proposition a" t-operation="append"> + <span class="o_mention_name">/<t t-esc="suggestion.name"/></span> + <span class="o_mention_info"><t t-esc="suggestion.help"/></span> + </t> + </t> </templates> |
