[IMP] mail,mass_mailing_sms,*: improve UI

*: phone_validation

- Add sample data in the mass_mailing_sms blacklist phone
numbers tree view.
- Update the mass_mailing_sms demo data so that, instead of
the sms being stuck due to a lack of credits, they are
all sent.
- Swap the mass_mailing_sms list view with the kanban view
so that the list view is the main one like in Email Marketing.
- Rename the reset mail template confirm button from "Proceed"
to "Reset Template" to make the action more explicit.

Task-3280602

closes odoo/odoo#119321

Related: odoo/enterprise#40120
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
amdi-odoo
2023-05-05 17:06:23 +02:00
parent cfd16f198b
commit 02ec80445b
4 changed files with 12 additions and 12 deletions
@@ -10,7 +10,7 @@
Are you sure you want to reset these email templates to their original configuration? Changes and translations will be lost.
</div>
<footer>
<button string="Proceed" class="btn btn-primary" type="object" name="reset_template" data-hotkey="q"/>
<button string="Reset Template" class="btn btn-primary" type="object" name="reset_template" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
@@ -167,11 +167,11 @@
<record id="mailing_sms_1_trace_3" model="mailing.trace">
<field name="mass_mailing_id" ref="mailing_sms_1"/>
<field name="trace_type">sms</field>
<field name="sms_number">+32456001133</field>
<field name="sms_number"></field>
<field name="model">mailing.contact</field>
<field name="res_id" ref="mass_mailing_sms.mailing_contact_0_3"/>
<field name="trace_status">error</field>
<field name="failure_type">sms_credit</field>
<field name="failure_type">sms_number_missing</field>
</record>
<record id="mailing_sms_1_trace_4" model="mailing.trace">
<field name="mass_mailing_id" ref="mailing_sms_1"/>
@@ -251,7 +251,7 @@
<record id="mailing_mailing_action_sms" model="ir.actions.act_window">
<field name="name">SMS Marketing</field>
<field name="res_model">mailing.mailing</field>
<field name="view_mode">kanban,tree,form,calendar,graph</field>
<field name="view_mode">tree,kanban,form,calendar,graph</field>
<field name="search_view_id" ref="mailing_mailing_view_search_sms"/>
<field name="domain">[('mailing_type', '=', 'sms')]</field>
<field name="context">{
@@ -268,17 +268,17 @@
</p>
</field>
</record>
<record id="mailing_mailing_action_sms_view_kanban" model="ir.actions.act_window.view">
<field name="sequence">1</field>
<field name="view_mode">kanban</field>
<field name="view_id" ref="mailing_mailing_view_kanban_sms"/>
<field name="act_window_id" ref="mailing_mailing_action_sms"/>
</record>
<record id="mailing_mailing_action_sms_view_tree" model="ir.actions.act_window.view">
<field name="sequence">2</field>
<field name="sequence">1</field>
<field name="view_mode">tree</field>
<field name="view_id" ref="mailing_mailing_view_tree_sms"/>
<field name="act_window_id" ref="mailing_mailing_action_sms"/>
</record>
<record id="mailing_mailing_action_sms_view_kanban" model="ir.actions.act_window.view">
<field name="sequence">2</field>
<field name="view_mode">kanban</field>
<field name="view_id" ref="mailing_mailing_view_kanban_sms"/>
<field name="act_window_id" ref="mailing_mailing_action_sms"/>
</record>
</data></odoo>
@@ -4,7 +4,7 @@
<field name="name">phone.blacklist.view.tree</field>
<field name="model">phone.blacklist</field>
<field name="arch" type="xml">
<tree string="Phone Blacklist">
<tree string="Phone Blacklist" sample="1">
<field name="create_date" string="Blacklist Date"/>
<field name="number"/>
</tree>