diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/mail/views/mail_shortcode_views.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
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 00000000..84002678 --- /dev/null +++ b/addons/mail/views/mail_shortcode_views.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data> + + <!-- mail.shortcode --> + <record id="mail_shortcode_action" model="ir.actions.act_window"> + <field name="name">Chat Shortcode</field> + <field name="res_model">mail.shortcode</field> + <field name="view_mode">tree,form</field> + <field name="help" type="html"> + <p class="o_view_nocontent_smiling_face"> + 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="mail_shortcode_view_tree" model="ir.ui.view"> + <field name="name">mail.shortcode.tree</field> + <field name="model">mail.shortcode</field> + <field name="arch" type="xml"> + <tree string="Shortcodes"> + <field name="source"/> + <field name="substitution"/> + <field name="description"/> + </tree> + </field> + </record> + + <record id="mail_shortcode_view_form" model="ir.ui.view"> + <field name="name">mail.shortcode.form</field> + <field name="model">mail.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> |
