mirror of
https://github.com/bringout/oca-ocb-mail.git
synced 2026-04-22 07:42:02 +02:00
19.0 vanilla
This commit is contained in:
parent
5df8c07b59
commit
daa394e8b0
2114 changed files with 564841 additions and 299642 deletions
|
|
@ -10,7 +10,7 @@
|
|||
<button string="Reset Template"
|
||||
name="%(sms_template_reset_action)d" type="action"
|
||||
groups="base.group_system"
|
||||
attrs="{'invisible': [('template_fs', '=', False)]}"/>
|
||||
invisible="not template_fs"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
<button name="action_create_sidebar_action" type="object"
|
||||
groups="base.group_no_one"
|
||||
class="oe_stat_button"
|
||||
attrs="{'invisible':[('sidebar_action_id','!=',False)]}" icon="fa-plus"
|
||||
invisible="sidebar_action_id" icon="fa-plus"
|
||||
help="Add a contextual action on the related model to open a sms composer with this template">
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_text">Add</span>
|
||||
|
|
@ -28,14 +28,18 @@
|
|||
<button name="action_unlink_sidebar_action" type="object"
|
||||
groups="base.group_no_one"
|
||||
class="oe_stat_button" icon="fa-minus"
|
||||
attrs="{'invisible':[('sidebar_action_id','=',False)]}"
|
||||
invisible="not sidebar_action_id"
|
||||
help="Remove the contextual action of the related model" widget="statinfo">
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_text">Remove</span>
|
||||
<span class="o_stat_text">Context Action</span>
|
||||
</div>
|
||||
</button>
|
||||
<button class="oe_stat_button" name="%(sms_template_preview_action)d" icon="fa-search-plus" string="Preview" type="action" target="new"/>
|
||||
<button class="oe_stat_button" name="%(sms_template_preview_action)d" icon="fa-search-plus" type="action" target="new">
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_text">Preview</span>
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
<div class="oe_title">
|
||||
<label for="name" string="SMS Template"/>
|
||||
|
|
@ -49,7 +53,7 @@
|
|||
<notebook>
|
||||
<page string="Content" name="content">
|
||||
<group>
|
||||
<field name="body" widget="sms_widget" nolabel="1" colspan="2"/>
|
||||
<field name="body" widget="sms_widget" nolabel="1"/>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
|
|
@ -59,13 +63,13 @@
|
|||
</record>
|
||||
|
||||
<record id="sms_template_view_tree" model="ir.ui.view">
|
||||
<field name="name">sms.template.view.tree</field>
|
||||
<field name="name">sms.template.view.list</field>
|
||||
<field name="model">sms.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="SMS Templates">
|
||||
<list string="SMS Templates">
|
||||
<field name="name"/>
|
||||
<field name="model_id"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
@ -83,7 +87,7 @@
|
|||
<record id="sms_template_action" model="ir.actions.act_window">
|
||||
<field name="name">Templates</field>
|
||||
<field name="res_model">sms.template</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="sms_template_menu"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue