PURPOSE Send SMS from server/automated actions. Indeed we can already send emails from server actions. The goal is to have the same thing for the sms. SPECIFICATION Purpose of this commit is to add support of sending batch SMS through server actions. This means sending SMS will be available also for automated (base automation) and scheduled actions (cron). A new type of server action is added: sms. User choose an sms.template to use to send SMS in batch. An option allow to choose to keep archive on selected records. If no archive is kept, a batch of sms is created. With archive a _message_sms is performed with note subtype, allowing to have a discuss messages with only sms customer being notified. Linked to task 1935280 Part of PR #34864
20 lines
799 B
XML
20 lines
799 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo><data>
|
|
|
|
<record id="ir_actions_server_view_form" model="ir.ui.view">
|
|
<field name="name">ir.actions.server.view.form.inherit.sms</field>
|
|
<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"
|
|
attrs="{'invisible': [('state', '!=', 'sms')],
|
|
'required': [('state', '=', 'sms')]}"/>
|
|
<field name="sms_mass_keep_log"
|
|
attrs="{'invisible': [('state', '!=', 'sms')]}"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</data></odoo>
|