mail/views/mail_shortcode_views.xml

65 lines
2.5 KiB
XML
Raw Normal View History

2024-05-03 12:40:35 +03:00
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- mail.shortcode -->
<record id="mail_shortcode_view_search" model="ir.ui.view">
<field name="name">mail.shortcode.search</field>
<field name="model">mail.shortcode</field>
<field name="arch" type="xml">
<search string="Canned Responses Search">
<field name="source"/>
<field name="substitution"/>
</search>
</field>
</record>
<record id="mail_shortcode_action" model="ir.actions.act_window">
<field name="name">Canned Responses</field>
<field name="res_model">mail.shortcode</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="mail_shortcode_view_search"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new canned response
</p><p>
Canned responses allow you to insert prewritten responses in
your messages by typing <i>:shortcut</i>. The shortcut is
replaced directly in your message, so that you can still edit
it before sending.
</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" editable="bottom" default_order="source" sample="1">
<field name="source"/>
<field name="substitution"/>
<field name="description"/>
<field name="last_used" readonly="1"/>
</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>