PURPOSE SMS are a powerful marketing tool. For instance it is perfect to announce a sale or to communicate a coupon code, to welcome a new customer in a fidelity program, ... Purpose of this task is to integrate SMS sending in batch in mass mailing. It will use same mailing objects but sending SMS instead of emails. Some metrics and flows will have to be slightly updated at the same time. SPECIFICATIONS Clean the use and options of sms composer after FP feedback : * see https://s.nimbusweb.me/share/3167586/ap1xpy95rz29a5cys576 as basis; * globally, do not display invalid recipients, only valid / invalid count as well as current selection / active domain counts; * consider logging a note as default behavior when using the composer; * simplify code: when doing a mass SMS, send SMS and attach a simple note to the document; Some other points * make name of sms templates translatable; * improve various wording, notably in sms widget; * display error code in sms list view; * update sms composer actions accordingly by correctly setting active id or ids; LINKS Task 1997464 PR #34424 Original SMS addition: Task1922163(4287481)
69 lines
2.3 KiB
XML
69 lines
2.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo><data>
|
|
<record id="sms_tsms_view_form" model="ir.ui.view">
|
|
<field name="name">sms.sms.view.form</field>
|
|
<field name="model">sms.sms</field>
|
|
<field name="arch" type="xml">
|
|
<form string="SMS">
|
|
<header>
|
|
<button name="send" string="Send Now" type="object" states='outgoing' class="oe_highlight"/>
|
|
<button name="cancel" string="Cancel" type="object" states='outgoing'/>
|
|
<field name="state" widget="statusbar"/>
|
|
</header>
|
|
<sheet>
|
|
<group>
|
|
<field name="body"/>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<field name="partner_id"/>
|
|
<field name="number"/>
|
|
</group>
|
|
<group>
|
|
<field name="error_code"/>
|
|
<field name="mail_message_id"/>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="sms_sms_view_tree" model="ir.ui.view">
|
|
<field name="name">sms.sms.view.tree</field>
|
|
<field name="model">sms.sms</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="SMS Templates">
|
|
<field name="number"/>
|
|
<field name="partner_id"/>
|
|
<field name="state"/>
|
|
<field name="error_code"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="sms_sms_view_search" model="ir.ui.view">
|
|
<field name="name">sms.sms.view.search</field>
|
|
<field name="model">sms.sms</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Search SMS Templates">
|
|
<field name="number"/>
|
|
<field name="partner_id"/>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="sms_sms_action" model="ir.actions.act_window">
|
|
<field name="name">SMS</field>
|
|
<field name="res_model">sms.sms</field>
|
|
<field name="view_mode">tree,form</field>
|
|
</record>
|
|
|
|
<menuitem id="sms_sms_menu"
|
|
parent="phone_validation.phone_menu_main"
|
|
action="sms_sms_action"
|
|
sequence="1"/>
|
|
|
|
</data>
|
|
</odoo>
|