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

@ -6,15 +6,34 @@
<field name="model">ir.actions.server</field>
<field name="inherit_id" ref="base.view_server_action_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='link_field_id']" position="after">
<field name="sms_template_id"
context="{'default_model': model_name}"
attrs="{'invisible': [('state', '!=', 'sms')],
'required': [('state', '=', 'sms')]}"/>
<field name="sms_method"
string="Send as"
attrs="{'invisible': [('state', '!=', 'sms')],
'required': [('state', '=', 'sms')]}"/>
<xpath expr="//t[@name='action_content']" position="inside">
<group invisible="state != 'sms'">
<group>
<field name="sms_template_id"
placeholder="Choose a template..."
context="{'default_model': model_name}"
required="state == 'sms'"/>
<label for="sms_method"/>
<div class="d-flex flex-column">
<field name="sms_method" required="state == 'sms'"/>
<div class="text-muted">
<span invisible="sms_method != 'sms'">
The message will be sent as an SMS to the recipients of the template
and will not appear in the messaging history.
</span>
<span invisible="sms_method != 'note'">
The SMS will not be sent, it will only be posted as an
internal note in the messaging history.
</span>
<span invisible="sms_method != 'comment'">
The SMS will be sent as an SMS to the recipients of the
template and it will also be posted as an internal note
in the messaging history.
</span>
</div>
</div>
</group>
</group>
</xpath>
</field>
</record>