diff options
| author | aca <aca@odoo.com> | 2019-06-19 09:14:43 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-07-26 09:53:46 +0000 |
| commit | 78565b1dc933692abba46a73f2298b7ea8e03c88 (patch) | |
| tree | 05006de48a2099a35c39dc5571d4929ab0135a3b /addons/web_settings_dashboard/static/src/xml | |
| parent | a8893ad2994aad05961bdddcecb3e2c55f301ed5 (diff) | |
[REM] web_settings_dashboard: Merge module into base_setup
Purpose
=======
Currently, when we click on “Settings” on the Home Dashboard, we arrive
on a new Dashboard with several pieces of information like Installed Apps,
invite new users, or translations. Some informations are reachable in
several ways, which is not necessary.
We would like to remove this page and replace it with the General Settings
page directly. That makes more sense to the user who click on “Settings”. The
present informations will be dispatched in the menu or in the general settings
for a better usability.
Specification
=============
This commit move code from web_settings_dashboard in order to put the features
in settings directly. To do so, we choose to move code to base_setup, and create
widget on the settings form view to keep features. Concerned features are: invite
users, dev tools, odoo edition number and IAP account link.
TaskID: 2006910
closes odoo/odoo#34290
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web_settings_dashboard/static/src/xml')
| -rw-r--r-- | addons/web_settings_dashboard/static/src/xml/dashboard.xml | 182 |
1 files changed, 0 insertions, 182 deletions
diff --git a/addons/web_settings_dashboard/static/src/xml/dashboard.xml b/addons/web_settings_dashboard/static/src/xml/dashboard.xml deleted file mode 100644 index 5e55e8d7a87..00000000000 --- a/addons/web_settings_dashboard/static/src/xml/dashboard.xml +++ /dev/null @@ -1,182 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<templates xml:space="preserve"> - <t t-name="DashboardMain"> - <div class="container-fluid py-2 o_web_settings_dashboard"> - <div class="form-row"> - <div class="col-12 col-lg-4 o_web_settings_dashboard_col"> - <div class="o_web_settings_dashboard_apps"></div> - <div class="o_web_settings_dashboard_translations"></div> - </div> - <div class="col-12 col-lg-4 o_web_settings_dashboard_col"> - <div class="o_web_settings_dashboard_invitations"></div> - <div class="o_web_settings_dashboard_company"></div> - </div> - <div class="col-12 col-lg-4 o_web_settings_dashboard_col"> - <div class="o_web_settings_dashboard_share"></div> - </div> - </div> - </div> - </t> - - <t t-name="DashboardApps"> - <div class="text-center o_web_settings_dashboard_apps"> - <i class="fa fa-cog fa-4x text-muted o_browse_apps" style="cursor: pointer;" role="img" aria-label="Browse Apps" title="Browse Apps"></i> - <div class="o_web_settings_dashboard_header"> - <t t-set="installed_apps" t-value="widget.data.installed_apps"/> - <t t-if="installed_apps"> - <t t-esc="installed_apps"></t> - <t t-if="installed_apps == 1">Installed App</t> - <t t-if="installed_apps > 1">Installed Apps</t> - </t> - <t t-if="! installed_apps"> - No app installed - </t> - </div> - <div> - <a href="#" class="btn btn-primary btn-block o_browse_apps" role="button"><strong>Browse Apps</strong></a> - </div> - <div class="d-flex mt-2 o_web_settings_dashboard_pills"> - <a href="https://www.odoo.com/apps/modules" target="_blank" class="flex-grow-1 w-25"><i class="fa fa-lg fa-rocket text-muted"/> App store</a> - <a href="https://www.odoo.com/apps/themes" target="_blank" class="flex-grow-1 w-25"><i class="fa fa-lg fa-picture-o text-muted"/> Theme store</a> - </div> - <div class="clearfix"/> - </div> - </t> - - <t t-name="EmailBadge"> - <span t-foreach="emails" t-as="email" class="badge badge-pill"> - <span class="o_badge_text"> - <t t-esc='email'/> - </span> - <a href="#" class="fa fa-times o_badge_remove" title="Remove Email" aria-label="Remove Email" role="button"/> - </span> - </t> - - <t t-name="DashboardInvitations"> - <div class="text-center o_web_settings_dashboard_invitations"> - <i class="fa fa-users fa-4x text-muted o_web_settings_dashboard_access_rights" style="cursor: pointer;" role="img" aria-label="Access rights" title="Access rights"></i> - <div class="o_web_settings_dashboard_header"> - <t t-set="active_users" t-value="widget.data.active_users"></t> - <t t-set="pending_users" t-value="widget.data.pending_users"></t> - <t t-if="active_users"> - <t t-esc="active_users"></t> - <t t-if="active_users <= 1"> Active User</t> - <t t-if="active_users > 1">Active Users</t> - </t> - </div> - <div class="text-center"> - <a href="#" class="o_web_settings_dashboard_access_rights"> Manage access rights</a> - </div> - <hr/> - <div class="o_web_settings_dashboard_invitation_form"> - <p><strong>Invite new users:</strong></p> - <input class="o_user_emails o_input mt8" type="text" placeholder="Enter e-mail addresses"/> - <button class="btn btn-primary btn-block o_web_settings_dashboard_invite mt16" data-loading-text="Inviting..."><strong>Invite</strong></button> - </div> - <div class="o_web_settings_dashboard_pending_users mt8"> - <t t-if="pending_users.length"> - <p><strong>Pending invitations:</strong></p> - <span t-foreach="pending_users" t-as="pending"> - <a href="#" class="badge badge-pill o_web_settings_dashboard_user" t-att-data-user-id="pending[0]"> <t t-esc="pending[1]"/> </a> - </span> - <t t-if="pending_users.length < widget.data.pending_count"> - <br/> - <a href="#" class="o_web_settings_dashboard_more"><t t-esc="widget.data.pending_count - pending_users.length"/> more </a> - </t> - </t> - </div> - </div> - </t> - - <t t-name="DashboardShare"> - <div class="text-center o_web_settings_dashboard_share"> - <i class="fa fa-share-alt fa-4x text-muted" role="img" aria-label="Share" title="Share"/> - <div class="o_web_settings_dashboard_header">Share the Love</div> - <div> - <small class="text-muted text-center o_web_settings_dashboard_compact_subtitle"> - Help us spread the word: Share Odoo's awesomeness with your friends! - </small> - </div> - <div class="row mt16"> - <div class="col-4"><a href="#" aria-label="Twitter" title="Twitter"><i class="fa fa-twitter-square fa-4x tw_share"/></a></div> - <div class="col-4"><a href="#" aria-label="Facebook" title="Facebook"><i class="fa fa-facebook-square fa-4x fb_share"/></a></div> - <div class="col-4"><a href="#" aria-label="LinkedIn" title="LinkedIn"><i class="fa fa-linkedin-square fa-4x li_share"/></a></div> - </div> - <hr/> - <t t-set="server_version" t-value="widget.data.server_version"/> - <t t-set="debug" t-value="widget.data.debug"/> - <t t-set="demo_active" t-value="widget.data.demo_active"/> - <div class="text-center"> - <div class="user-heading"> - <h3> - Odoo <t t-esc="server_version"/> - (Community Edition) - </h3> - </div> - <div> - <div class="tab-content"> - <div role="tabpanel" id="settings" class="tab-pane active text-muted text-center o_web_settings_dashboard_compact_subtitle"> - <small>Copyright © 2004 <a target="_blank" href="https://www.odoo.com" style="text-decoration: underline;">Odoo S.A.</a> <a target="_blank" href="http://www.gnu.org/licenses/lgpl.html" style="text-decoration: underline;">GNU LGPL Licensed</a></small> - </div> - </div> - </div> - </div> - <hr/> - <div class="text-right"> - <a t-if="debug.indexOf('1') == -1" class="d-block" href="?debug=1">Activate the developer mode</a> - <a t-if="debug.indexOf('assets') == -1" class="d-block" href="?debug=assets">Activate the developer mode (with assets)</a> - <a t-if="debug.indexOf('tests') == -1" class="d-block" href="?debug=assets,tests">Activate the developer mode (with tests assets)</a> - <a t-if="debug" class="d-block" href="?debug=">Deactivate the developer mode</a> - <a t-if="debug and !demo_active" class="o_web_settings_dashboard_force_demo" href="#">Load demo data</a> - </div> - </div> - </t> - - <t t-name="DashboardEnterprise"> - <hr class="mt16"/> - <div class="text-center o_web_settings_dashboard_enterprise"> - <div class="o_web_settings_dashboard_header">Odoo Enterprise</div> - <div class="mb16"><a href="http://www.odoo.com/editions" target="_blank">Get more features with the Enterprise Edition!</a></div> - <div><img class="img img-fluid" t-att-src='_s + "/web/static/src/img/enterprise_upgrade.jpg"' alt="Upgrade to enterprise"/></div> - <div> - <a href="#" class="btn btn-primary btn-block o_confirm_upgrade" role="button"><strong>Upgrade Now</strong></a> - </div> - </div> - </t> - - <t t-name="DashboardTranslations"> - <div class="text-center o_web_settings_dashboard_translations mt8"> - <i class="fa fa-globe fa-4x text-muted" role="img" aria-label="Translations" title="Translations"></i> - <div class="o_web_settings_dashboard_header"> - Translations - </div> - <div> - <small class="text-muted text-center o_web_settings_dashboard_compact_subtitle"> - Send your documents in your partner's language or set up a language for your users - </small> - </div> - <div class="mt16"> - <a href="#" role="button" class="btn btn-primary btn-block o_load_translations"><strong>Load a Translation</strong></a> - </div> - </div> - </t> - - <t t-name="DashboardCompany"> - <div class="text-center o_web_settings_dashboard_company mt8"> - <i class="fa fa-suitcase fa-4x text-muted" role="img" aria-label="Company" title="Company"></i> - <div class="o_web_settings_dashboard_header"> - <t t-esc="widget.data.company_name"></t> - </div> - <div> - <small class="text-muted text-center o_web_settings_dashboard_compact_subtitle"> - Set up your company information - </small> - </div> - <div class="mt16"> - <a href="#" role="button" class="btn btn-primary btn-block o_setup_company"><strong>Set Up</strong></a> - </div> - </div> - </t> - -</templates> |
