mirror of
https://github.com/bringout/oca-ocb-mail.git
synced 2026-04-24 16:42:04 +02:00
19.0 vanilla
This commit is contained in:
parent
5df8c07b59
commit
daa394e8b0
2114 changed files with 564841 additions and 299642 deletions
|
|
@ -7,14 +7,14 @@
|
|||
<field name="inherit_id" ref="calendar.calendar_alarm_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='mail_template_id']" position="after">
|
||||
<field name="sms_template_id" attrs="{'invisible': [('alarm_type','!=','sms')], 'required': [('alarm_type', '=', 'sms')]}"
|
||||
<field name="sms_template_id" invisible="alarm_type != 'sms'" required="alarm_type == 'sms'"
|
||||
context="{'default_model': 'calendar.event'}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_calendar_event_tree_inherited" model="ir.ui.view">
|
||||
<field name="name">calendar.event.tree.calendar_sms</field>
|
||||
<field name="name">calendar.event.list.calendar_sms</field>
|
||||
<field name="model">calendar.event</field>
|
||||
<field name="inherit_id" ref="calendar.view_calendar_event_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
<field name="inherit_id" ref="calendar.view_calendar_event_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@name='send_buttons']" position="inside">
|
||||
<button name="action_send_sms" help="Send SMS to attendees" type="object" string="SMS" icon="fa-mobile"/>
|
||||
<button name="action_send_sms" help="Send SMS to attendees" type="object" string="SMS" icon="fa-mobile" invisible="not user_can_edit"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='phone']" position="attributes">
|
||||
<attribute name="options">{'enable_sms': false}</attribute>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue