diff options
| author | Jérome Maes <jem@openerp.com> | 2015-06-01 16:37:07 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2015-09-01 20:16:08 +0200 |
| commit | 4af96310721237d3640bbd162ff9ea84e627028d (patch) | |
| tree | 2deb74fa477c9ea33b1a0a65199b96e2d6e5f02b /addons/mail/views/mail_shortcode_views.xml | |
| parent | 5907be1f335dc21934619a34fc928a19e7885211 (diff) | |
[MOV] mail, im_chat : move files and code from im_chat to mail and bus
- im_chat.session will be replaced by mail.channel
- im_chat.shortode is renamed into mail.shortcode
- im_chat.presence is moved to bus module
- js and controller code is moved from im_chat to mail module
This commit only move files, and modify manifests, bundles, ... The code will be adapt in the next commits.
Diffstat (limited to 'addons/mail/views/mail_shortcode_views.xml')
| -rw-r--r-- | addons/mail/views/mail_shortcode_views.xml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/addons/mail/views/mail_shortcode_views.xml b/addons/mail/views/mail_shortcode_views.xml new file mode 100644 index 00000000000..e281950d102 --- /dev/null +++ b/addons/mail/views/mail_shortcode_views.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data> + + <!-- im_chat.shortcode --> + <record id="im_chat_shortcode_action" model="ir.actions.act_window"> + <field name="name">Chat Shortcode</field> + <field name="res_model">im_chat.shortcode</field> + <field name="view_mode">tree,form</field> + <field name="help" type="html"> + <p class="oe_view_nocontent_create"> + Click to define a new chat shortcode. + </p><p> + A shortcode is a keyboard shortcut. For instance, you type #gm and it will be transformed into "Good Morning". + </p> + </field> + </record> + + <record id="im_chat_shortcode_view_tree" model="ir.ui.view"> + <field name="name">im_chat.shortcode.tree</field> + <field name="model">im_chat.shortcode</field> + <field name="arch" type="xml"> + <tree string="Shortcodes"> + <field name="source"/> + <field name="substitution"/> + <field name="description"/> + </tree> + </field> + </record> + + <record id="im_chat_shortcode_view_form" model="ir.ui.view"> + <field name="name">im_chat.shortcode.form</field> + <field name="model">im_chat.shortcode</field> + <field name="arch" type="xml"> + <form string="Shortcodes"> + <sheet> + <group> + <field name="source"/> + <field name="substitution"/> + <field name="description"/> + </group> + </sheet> + </form> + </field> + </record> + + </data> +</odoo> |
