[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
This commit is contained in:
committed by
Thibault Delavallée
parent
1ad04f2180
commit
f6c2d7ebba
@@ -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',
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user