diff options
| author | Rémi Rahir <rar@odoo.com> | 2019-09-05 12:47:32 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-09-09 12:45:44 +0000 |
| commit | f6c2d7ebba9826dd7b7b3ab8b0dbc31d25ccf262 (patch) | |
| tree | 245dc634565921f7b3b56267e7380b356482840f /addons/base_setup | |
| parent | 1ad04f2180bbb991d18e8fd770e9d649a2ee6ed0 (diff) | |
[IMP] base_setup : remove install button of SMS
PURPOSE
Allow auto install of all SMS-based feature. Move partner onchange formatting
directly inside phone validation.
SPECIFICATIONS
Send SMS feature should not be an option anymore. Move SMS settings it to the
left of the Partner Autocomplete one and remove field. Since SMS is now
integrated with several business apps we do not want the user to uninstall that
module "by inadvertence".
LINKS
Task 2061765
Diffstat (limited to 'addons/base_setup')
| -rw-r--r-- | addons/base_setup/models/res_config_settings.py | 1 | ||||
| -rw-r--r-- | addons/base_setup/views/res_config_settings_views.xml | 19 |
2 files changed, 8 insertions, 12 deletions
diff --git a/addons/base_setup/models/res_config_settings.py b/addons/base_setup/models/res_config_settings.py index e54b4dbf002..058c10b06aa 100644 --- a/addons/base_setup/models/res_config_settings.py +++ b/addons/base_setup/models/res_config_settings.py @@ -29,7 +29,6 @@ class ResConfigSettings(models.TransientModel): module_voip = fields.Boolean("Asterisk (VoIP)") module_web_unsplash = fields.Boolean("Unsplash Image Library") module_partner_autocomplete = fields.Boolean("Partner Autocomplete") - module_sms = fields.Boolean("Send SMS") module_base_geolocalize = fields.Boolean("GeoLocalize") report_footer = fields.Text(related="company_id.report_footer", string='Custom Report Footer', help="Footer text displayed at the bottom of all reports.", readonly=False) group_multi_currency = fields.Boolean(string='Multi-Currencies', diff --git a/addons/base_setup/views/res_config_settings_views.xml b/addons/base_setup/views/res_config_settings_views.xml index 5938cab733e..071e743d52b 100644 --- a/addons/base_setup/views/res_config_settings_views.xml +++ b/addons/base_setup/views/res_config_settings_views.xml @@ -133,6 +133,14 @@ <div id="contacts_settings"> <h2>Contacts</h2> <div class="row mt16 o_settings_container"> + <div class="col-xs-12 col-md-6 o_setting_box" id="sms"> + <div class="o_setting_right_pane" id="sms_settings"> + <div class="o_form_label">Send SMS</div> + <div class="text-muted"> + Send texts to your contacts + </div> + </div> + </div> <div class="col-xs-12 col-md-6 o_setting_box" title="When populating your address book, Odoo provides a list of matching companies. When selecting one item, the company data and logo are auto-filled." id="partner_autocomplete"> <div class="o_setting_left_pane"> <field name="module_partner_autocomplete"/> @@ -144,17 +152,6 @@ </div> </div> </div> - <div class="col-xs-12 col-md-6 o_setting_box" id="sms"> - <div class="o_setting_left_pane"> - <field name="module_sms"/> - </div> - <div class="o_setting_right_pane" id="sms_settings"> - <label for="module_sms"/> - <div class="text-muted"> - Send texts to your contacts - </div> - </div> - </div> </div> </div> <div id="emails"/> |
