19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:39 +01:00
parent 5df8c07b59
commit daa394e8b0
2114 changed files with 564841 additions and 299642 deletions

View file

@ -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>