mirror of
https://github.com/bringout/oca-ocb-mail.git
synced 2026-04-22 05:42:00 +02:00
19.0 vanilla
This commit is contained in:
parent
5df8c07b59
commit
daa394e8b0
2114 changed files with 564841 additions and 299642 deletions
|
|
@ -6,8 +6,8 @@
|
|||
<field name="arch" type="xml">
|
||||
<form string="Send an SMS">
|
||||
<!-- Single mode information (invalid number) -->
|
||||
<div colspan="2" class="alert alert-danger text-center mb-0" role="alert"
|
||||
attrs="{'invisible': ['|', '|', ('res_model_description', '=', False), ('comment_single_recipient', '=', False), ('recipient_single_valid', '=', True)]}">
|
||||
<div class="alert alert-danger text-center" role="alert"
|
||||
invisible="not res_model_description or not comment_single_recipient or recipient_single_valid">
|
||||
<p class="my-0">
|
||||
<strong>Invalid number:</strong>
|
||||
<span> make sure to set a country on the </span>
|
||||
|
|
@ -17,8 +17,8 @@
|
|||
</div>
|
||||
|
||||
<!-- Mass mode information (res_ids versus active domain) -->
|
||||
<div colspan="2" class="alert alert-info text-center mb-0" role="alert"
|
||||
attrs="{'invisible': ['|', ('comment_single_recipient', '=', True), ('recipient_invalid_count', '=', 0)]}">
|
||||
<div class="alert alert-info text-center" role="alert"
|
||||
invisible="comment_single_recipient or recipient_invalid_count == 0">
|
||||
<p class="my-0">
|
||||
<field class="oe_inline fw-bold" name="recipient_invalid_count"/> out of
|
||||
<field class="oe_inline fw-bold" name="res_ids_count"/> recipients have an invalid phone number and will not receive this text message.
|
||||
|
|
@ -37,37 +37,45 @@
|
|||
<field name="number_field_name" invisible="1"/>
|
||||
<field name="numbers" invisible="1"/>
|
||||
<field name="sanitized_numbers" invisible="1"/>
|
||||
<field name="template_id" invisible="1"/>
|
||||
|
||||
<label for="recipient_single_description" string="Recipient"
|
||||
<label for="recipient_single_description" string="To"
|
||||
class="fw-bold"
|
||||
attrs="{'invisible': [('comment_single_recipient', '=', False)]}"/>
|
||||
<div attrs="{'invisible': [('comment_single_recipient', '=', False)]}">
|
||||
<field name="recipient_single_description" class="oe_inline" attrs="{'invisible': [('recipient_single_description', '=', False)]}"/>
|
||||
<field name="recipient_single_number_itf" class="oe_inline" nolabel="1" onchange_on_keydown="True" placeholder="e.g. +1 415 555 0100"/>
|
||||
invisible="not comment_single_recipient"/>
|
||||
<div invisible="not comment_single_recipient">
|
||||
<field name="recipient_single_description" class="w-auto text-muted me-2" invisible="not recipient_single_description"/>
|
||||
<field name="recipient_single_number_itf" class="oe_inline border-bottom" nolabel="1" onchange_on_keydown="True" placeholder="e.g. +1 415 555 0100"/>
|
||||
</div>
|
||||
<field name="body" widget="sms_widget" attrs="{'invisible': ['|', ('comment_single_recipient', '=', False), ('recipient_single_valid', '=', True)]}"/>
|
||||
<field name="body" widget="sms_widget" attrs="{'invisible': [('comment_single_recipient', '=', True), ('recipient_single_valid', '=', False)]}" default_focus="1"/>
|
||||
<field name="mass_keep_log" invisible="1"/>
|
||||
</group>
|
||||
<field name="body" widget="sms_widget" invisible="comment_single_recipient or recipient_single_valid"
|
||||
options="{'dynamic_placeholder': true, 'dynamic_placeholder_model_reference_field': 'res_model'}"
|
||||
placeholder="Write a message..."/>
|
||||
<field name="body" widget="sms_widget" invisible="comment_single_recipient or not recipient_single_valid" default_focus="1"
|
||||
options="{'dynamic_placeholder': true, 'dynamic_placeholder_model_reference_field': 'res_model'}"
|
||||
placeholder="Write a message..."/>
|
||||
<field name="body" widget="sms_widget" invisible="not comment_single_recipient"
|
||||
placeholder="Write a message..."/>
|
||||
<field name="mass_keep_log" invisible="1"/>
|
||||
<field name="use_exclusion_list" invisible="1"/>
|
||||
</sheet>
|
||||
<footer>
|
||||
<!-- attrs doesn't work for 'disabled'-->
|
||||
<button string="Send SMS" type="object" class="oe_highlight" name="action_send_sms" data-hotkey="q"
|
||||
attrs="{'invisible': ['|',('composition_mode', 'not in', ('comment', 'numbers')),('recipient_single_valid', '=', False)]}"/>
|
||||
<button string="Send SMS" type="object" class="oe_highlight" name="action_send_sms" data-hotkey="q"
|
||||
attrs="{'invisible': ['|',('composition_mode', 'not in', ('comment', 'numbers')),('recipient_single_valid', '=', True)]}" disabled='1'/>
|
||||
<button string="Send" type="object" class="oe_highlight" name="action_send_sms" data-hotkey="q"
|
||||
invisible="composition_mode not in ('comment', 'numbers') or not recipient_single_valid"/>
|
||||
<button string="Send" type="object" class="oe_highlight" name="action_send_sms" data-hotkey="q"
|
||||
invisible="composition_mode not in ('comment', 'numbers') or recipient_single_valid" disabled='1'/>
|
||||
<button string="Put in queue" type="object" class="oe_highlight" name="action_send_sms" data-hotkey="q"
|
||||
attrs="{'invisible': [('composition_mode', '!=', 'mass')]}"/>
|
||||
<button string="Send Now" type="object" name="action_send_sms_mass_now" data-hotkey="w"
|
||||
attrs="{'invisible': [('composition_mode', '!=', 'mass')]}"/>
|
||||
<button string="Close" class="btn btn-secondary" special="cancel" data-hotkey="z"/>
|
||||
invisible="composition_mode != 'mass'"/>
|
||||
<button string="Send now" type="object" name="action_send_sms_mass_now" data-hotkey="w"
|
||||
invisible="composition_mode != 'mass'"/>
|
||||
<button string="Discard" class="btn btn-secondary" special="cancel" data-hotkey="x"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="sms_composer_action_form" model="ir.actions.act_window">
|
||||
<field name="name">Send SMS Text Message</field>
|
||||
<field name="name">Send SMS</field>
|
||||
<field name="res_model">sms.composer</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue