From 61611c38e7e4c5bfc04d7fbc8491e80c941fe0e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 20 Sep 2019 10:21:11 +0000 Subject: [PATCH] [IMP] mass_mailing_sms: add a form view displaying mailing type choice Currently in mass_mailing_sms form view of mailing is displaying differently depending on mailing_type field that is hidden. Purpose is to have a single form view while not allowing people to change the mailing type as they always come from a context where it is given (mass_mailing -> mail, mass mailing sms -> sms, same in marketing automation(_sms)). In this commit we create a new form view based on the existing one (inherit and primary) with the only change currently being the mailing_type being displayed. It will be used in some cases when we want people to contact in mass records without knowing if it will be mail or sms. For example on event, allowing to contact attendees and choose either mail or sms, avoiding to define two buttons and actions on event form view. Task ID 2074848 (sms on attendees) Task ID 2075183 (sms on speakers) PR #37185 --- .../views/mailing_mailing_views.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/addons/mass_mailing_sms/views/mailing_mailing_views.xml b/addons/mass_mailing_sms/views/mailing_mailing_views.xml index 0b8d47637f1..bbdee1ccbe5 100644 --- a/addons/mass_mailing_sms/views/mailing_mailing_views.xml +++ b/addons/mass_mailing_sms/views/mailing_mailing_views.xml @@ -130,6 +130,22 @@ + + + mailing.mailing.view.form.mixed + mailing.mailing + primary + 30 + + + + 0 + + + + mailing.mailing.view.kanban.inherit.sms mailing.mailing