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
392 lines
26 KiB
XML
392 lines
26 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="res_config_settings_view_form" model="ir.ui.view">
|
|
<field name="name">res.config.settings.view.form.inherit.base.setup</field>
|
|
<field name="model">res.config.settings</field>
|
|
<field name="priority" eval="0"/>
|
|
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[hasclass('settings')]" position="inside">
|
|
<div class="app_settings_block" data-string="General Settings" string="General Settings" data-key="general_settings">
|
|
|
|
<div id="invite_users">
|
|
<h2>Users</h2>
|
|
<div class="row mt16 o_settings_container">
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<div class="o_setting_right_pane">
|
|
<span class="fa fa-lg fa-users"/>
|
|
<field name='active_user_count' class="w-auto pl-3 font-weight-bold"/>
|
|
<span class='o_form_label' attrs="{'invisible':[('active_user_count', '>', '1')]}">
|
|
Active User
|
|
</span>
|
|
<span class='o_form_label' attrs="{'invisible':[('active_user_count', '<=', '1')]}">
|
|
Active Users
|
|
</span>
|
|
|
|
<br/>
|
|
<button name="%(base.action_res_users)d" icon="fa-arrow-right" type="action" string="Manage Users" class="btn-link o_web_settings_access_rights"/>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<div class="o_setting_right_pane">
|
|
<widget name='res_config_invite_users'/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="companies">
|
|
<h2>Companies</h2>
|
|
<div class="row mt16 o_settings_container">
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<div class="o_setting_right_pane">
|
|
<field name="company_name" class="font-weight-bold"/>
|
|
<br/>
|
|
<field name="company_informations" class="text-muted" style="width: 90%;"/>
|
|
<br/>
|
|
<button name="open_company" icon="fa-arrow-right" type="object" string="Update Info" class="btn-link"/>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<div class="o_setting_right_pane">
|
|
<field name='company_count' class="w-auto pl-1 font-weight-bold"/>
|
|
<span class="o_form_label">
|
|
Companies
|
|
</span>
|
|
<br/>
|
|
<div class="mt8">
|
|
<button name="%(base.action_res_company_form)d" icon="fa-arrow-right" type="action" string="Manage Companies" class="btn-link"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="languages">
|
|
<h2>Languages</h2>
|
|
<div class='row mt16 o_settings_container'>
|
|
<div class='col-xs-12 col-md-6 o_setting_box'>
|
|
<div class='o_setting_right_pane'>
|
|
<!-- TODO This is not an ideal solution but it looks ok on the interface -->
|
|
<div class="w-50">
|
|
<field name="language_count" class="w-auto pl-1 font-weight-bold"/>
|
|
<span class="o_form_label">
|
|
Languages
|
|
</span>
|
|
</div>
|
|
<div class="mt8">
|
|
<button name="%(base.res_lang_act_window)d" icon="fa-arrow-right" type="action" string="Manage Languages" class="btn-link"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="business_documents">
|
|
<h2>Business Documents</h2>
|
|
<div class="row mt16 o_settings_container">
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<div class="o_setting_right_pane">
|
|
<span class="o_form_label">Format</span>
|
|
<span class="fa fa-lg fa-building-o" title="Values set here are company-specific." aria-label="Values set here are company-specific." groups="base.group_multi_company" role="img"/>
|
|
<div class="text-muted">
|
|
Set the paper format of printed documents
|
|
</div>
|
|
<div class="content-group">
|
|
<div class="mt16 row">
|
|
<label for="paperformat_id" string="Format" class="col-3 col-lg-3 o_light_label"/>
|
|
<field name="paperformat_id" class="oe_inline" required="1"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<div class="o_setting_right_pane">
|
|
<span class="o_form_label">Document Layout</span>
|
|
<span class="fa fa-lg fa-building-o" title="Values set here are company-specific." aria-label="Values set here are company-specific." groups="base.group_multi_company" role="img"/>
|
|
<div class="text-muted">
|
|
Choose the layout of your documents
|
|
</div>
|
|
<div class="content-group">
|
|
<div class="mt16" groups="base.group_no_one">
|
|
<label for="external_report_layout_id" string="Layout" class="col-3 col-lg-3 o_light_label"/>
|
|
<field name="external_report_layout_id" domain="[('type','=', 'qweb')]" class="oe_inline"/>
|
|
</div>
|
|
<div class="mt8">
|
|
<button name="%(base.action_base_document_layout_configurator)d" string="Configure Document Layout" type="action" class="oe_link" icon="fa-arrow-right"/>
|
|
<button name="edit_external_header" string="Edit Layout" type="object" class="oe_link" groups="base.group_no_one"/>
|
|
<button name="%(web.action_report_externalpreview)d" string="Preview Document" type="action" class="oe_link" groups="base.group_no_one"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="statistics">
|
|
<h2>Statistics</h2>
|
|
<div class='row mt16 o_settings_container' id='statistics_div'>
|
|
</div>
|
|
</div>
|
|
|
|
<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"/>
|
|
</div>
|
|
<div class="o_setting_right_pane" id="partner_autocomplete_settings">
|
|
<label for="module_partner_autocomplete"/>
|
|
<div class="text-muted">
|
|
Automatically enrich your contact base with company data
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="emails"/>
|
|
<h2>Users</h2>
|
|
<div class="row mt16 o_settings_container" id="user_default_rights">
|
|
<div class="col-12 col-lg-6 o_setting_box" title="By default, new users get highest access rights for all installed apps." id="access_rights">
|
|
<div class="o_setting_left_pane">
|
|
<field name="user_default_rights"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label string="Default Access Rights" for="user_default_rights"/>
|
|
<div class="text-muted">
|
|
Set custom access rights for new users
|
|
</div>
|
|
<div class="content-group" attrs="{'invisible': [('user_default_rights','=',False)]}">
|
|
<div class="mt8">
|
|
<button type="object" name="open_default_user" string="Default Access Rights" icon="fa-arrow-right" class="btn-link"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-6 o_setting_box" groups="base.group_no_one" id="allow_import">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_base_import" />
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label string="Import & Export" for="module_base_import"/>
|
|
<div class="text-muted">
|
|
Allow users to import data from CSV/XLS/XLSX/ODS files
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-6 o_setting_box" groups="base.group_no_one">
|
|
<div class="o_setting_left_pane">
|
|
<field name="show_effect"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="show_effect"/>
|
|
<div class="text-muted">
|
|
Add fun feedback and motivate your employees
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="multi_company" groups="base.group_multi_company">
|
|
<field name="company_id" invisible="1"/>
|
|
<h2>Multi-Company</h2>
|
|
<div class="row mt16 o_settings_container" name="multi">
|
|
<div class="col-12 col-lg-6 o_setting_box" title="Configure company rules to automatically create SO/PO when one of your company sells/buys to another of your company." id="inter_company">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_inter_company_rules" widget="upgrade_boolean"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label string="Inter-Company Transactions" for="module_inter_company_rules"/>
|
|
<span class="fa fa-lg fa-building-o" title="Values set here are company-specific." aria-label="Values set here are company-specific." groups="base.group_multi_company" role="img"/>
|
|
<div class="text-muted">
|
|
Automatically generate counterpart documents for orders/invoices between companies
|
|
</div>
|
|
<div class="content-group" attrs="{'invisible': [('module_inter_company_rules','=',False)]}" id="inter_companies_rules">
|
|
<div class="mt16 text-warning"><strong>Save</strong> this page and come back here to set up the feature.</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<h2>Integrations</h2>
|
|
<div class="row mt16 o_settings_container" name="integration">
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_pad"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="module_pad"/>
|
|
<div class="text-muted">
|
|
Use external pads in Odoo Notes
|
|
</div>
|
|
<div class="content-group" attrs="{'invisible': [('module_pad','=',False)]}" id="msg_module_pad">
|
|
<div class="text-warning mt16"><strong>Save</strong> this page and come back here to set up the feature.</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_google_calendar" />
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label string="Google Calendar" for="module_google_calendar"/>
|
|
<div class="text-muted">
|
|
Synchronize your calendar with Google Calendar
|
|
</div>
|
|
<div class="content-group" attrs="{'invisible': [('module_google_calendar','=',False)]}" id="msg_module_google_calendar">
|
|
<div class="text-warning mt16"><strong>Save</strong> this page and come back here to set up the feature.</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_google_drive" />
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label string="Google Drive" for="module_google_drive"/>
|
|
<div class="text-muted">
|
|
Create and attach Google Drive documents to any record
|
|
</div>
|
|
<div class="content-group mt16" attrs="{'invisible': [('module_google_drive','=',False)]}" id="msg_module_google_drive">
|
|
<div class="mt16 text-warning"><strong>Save</strong> this page and come back here to set up the feature.</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_google_spreadsheet" />
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="module_google_spreadsheet"/>
|
|
<div class="text-muted">
|
|
Extract and analyze Odoo data from Google Spreadsheet
|
|
</div>
|
|
<div class="content-group" attrs="{'invisible': [('module_google_spreadsheet','=',False)]}" id="msg_module_google_spreadsheet">
|
|
<div class="mt16 text-warning"><strong>Save</strong> this page and come back here to set up the feature.</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-6 o_setting_box" id="module_auth_oauth">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_auth_oauth" />
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label string="OAuth Authentication" for="module_auth_oauth"/>
|
|
<div class="text-muted">
|
|
Use external accounts to log in (Google, Facebook, etc.)
|
|
</div>
|
|
<div class="content-group mt16" attrs="{'invisible': [('module_auth_oauth','=',False)]}" id="msg_module_auth_oauth">
|
|
<div class="mt16 text-warning"><strong>Save</strong> this page and come back here to set up the feature.</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-6 o_setting_box" id="oauth">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_auth_ldap"/>
|
|
</div>
|
|
<div class="o_setting_right_pane" name="auth_ldap_right_pane">
|
|
<label string="LDAP Authentication" for="ldaps"/>
|
|
<div class="text-muted">
|
|
Use LDAP credentials to log in
|
|
</div>
|
|
<div class="content-group" attrs="{'invisible': [('module_auth_ldap','=',False)]}" id="auth_ldap_warning">
|
|
<div class="mt16 text-warning"><strong>Save</strong> this page and come back here to set up the feature.</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-6 o_setting_box" id="gengo">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_base_gengo"/>
|
|
</div>
|
|
<div class="o_setting_right_pane" name="base_gengo_right_pane">
|
|
<label string="Gengo Translations" for="module_base_gengo"/>
|
|
<div class="text-muted">
|
|
Translate your website with Gengo
|
|
</div>
|
|
<div class="content-group" attrs="{'invisible': [('module_base_gengo','=',False)]}" name="base_gengo_warning">
|
|
<div class="mt16 text-warning"><strong>Save</strong> this page and come back here to set up the feature.</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-6 o_setting_box" id="unsplash">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_web_unsplash"/>
|
|
</div>
|
|
<div class="o_setting_right_pane" id="web_unsplash_settings">
|
|
<label for="module_web_unsplash"/>
|
|
<div class="text-muted">
|
|
Find free high-resolution images from Unsplash
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-6 o_setting_box" id="base_geolocalize">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_base_geolocalize"/>
|
|
</div>
|
|
<div class="o_setting_right_pane" id="web_geolocalize_settings">
|
|
<label string="Geo Localization" for="module_base_geolocalize"/>
|
|
<div class="text-muted">
|
|
GeoLocalize your partners
|
|
</div>
|
|
<div class="content-group" attrs="{'invisible': [('module_base_geolocalize','=', False)]}" name="base_geolocalize_warning">
|
|
<div class="mt16 text-warning"><strong>Save</strong> this page and come back here to choose your Geo Provider.</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<widget name='res_config_dev_tool'/>
|
|
<div id='about'>
|
|
<h2>About</h2>
|
|
<div class="row mt16 o_settings_container">
|
|
<div class='col-12 col-lg-6 o_setting_box' id='appstore'>
|
|
<div class="d-flex">
|
|
<div class="o_setting_right_pane">
|
|
<!-- FIXME Those links are defined directly in the template which means that we will have to
|
|
update the template code is the link ever changes -->
|
|
<a class="d-block mx-auto" href="https://play.google.com/store/apps/details?id=com.odoo.mobile" target="blank">
|
|
<img alt="On Google Play" class="d-block mx-auto img img-fluid" src="/base_setup/static/src/img/google_play.png"/>
|
|
</a>
|
|
</div>
|
|
<div>
|
|
<a class='d-block mx-auto' href="https://itunes.apple.com/us/app/odoo/id1272543640" target="blank">
|
|
<img alt="On Apple Store" class="d-block mx-auto img img-fluid" src="/base_setup/static/src/img/app_store.png"/>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<widget name='res_config_edition'/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_general_configuration" model="ir.actions.act_window">
|
|
<field name="name">Settings</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">res.config.settings</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">inline</field>
|
|
<field name="context">{'module' : 'general_settings'}</field>
|
|
</record>
|
|
|
|
<menuitem
|
|
id="menu_config"
|
|
name="General Settings"
|
|
parent="base.menu_administration"
|
|
sequence="0"
|
|
action="action_general_configuration"
|
|
groups="base.group_system"/>
|
|
|
|
</odoo>
|