[IMP] web_settings_dashboard,web_tour: usability improvement from user tests

1/ The tip should be on the textarea, not on the button.

2/ The access right field on the quick user creation form is confusing.
   I propose to put it in "Technical Feature" so that it's not visible for normal users.

3/ dissociate les settings tour from project tour
This commit is contained in:
Yannick Tivisse
2016-06-29 12:02:19 +02:00
parent 2a3f37806f
commit 3106d5a3f2
5 changed files with 30 additions and 14 deletions
-12
View File
@@ -50,18 +50,6 @@ tour.register('project_tour', {
extra_trigger: '.o_form_project_tasks',
content: _t("Click on layers in the path to easily <b>return to tasks</b>."),
position: "bottom"
}, {
trigger: ".o_main_navbar .o_menu_toggle",
content: _t('Click the <i>Home icon</i> to navigate across apps.'),
position: "bottom"
}, {
trigger: ".o_apps .o_app:last",
content: _t("Configuration options are available in the Settings app."),
position: "bottom"
}, {
trigger: ".o_web_settings_dashboard .o_web_settings_dashboard_invitations",
content: _t("<b>Invite collegues</b> via email.<br/><i>Enter one email per line.</i>"),
position: "bottom"
}]);
});
@@ -0,0 +1,21 @@
odoo.define('web_settings_dashboard.tour', function(require) {
"use strict";
var core = require('web.core');
var tour = require('web_tour.tour');
var _t = core._t;
tour.register('web_settings_dashboard_tour', {
'skip_enabled': true,
}, [{
trigger: '.o_app[data-menu-xmlid="base.menu_administration"], .oe_menu_toggler[data-menu-xmlid="base.menu_administration"]',
content: _t("Configuration options are available in the Settings app."),
position: "bottom"
}, {
trigger: '.o_web_settings_dashboard_invitation_form textarea[id="user_emails"]',
content: _t("<b>Invite collegues</b> via email.<br/><i>Enter one email per line.</i>"),
position: "bottom"
}]);
});
@@ -4,6 +4,7 @@
<xpath expr="." position="inside">
<link href="/web_settings_dashboard/static/src/less/dashboard.less" rel="stylesheet" type="text/less"/>
<script type="text/javascript" src="/web_settings_dashboard/static/src/js/dashboard.js"></script>
<script type="text/javascript" src="/web_settings_dashboard/static/src/js/tour.js"></script>
</xpath>
</template>
</odoo>
@@ -5,4 +5,10 @@
<field name="tag">web_settings_dashboard.main</field>
</record>
<menuitem name="Dashboard" id="web_dashboard_menu" action="web_settings_dashboard_action" parent="base.menu_administration" sequence="-1" groups="base.group_system"/>
<!-- Make the xmlid of menus required by the Website Generic tour available in webclient -->
<record id="base.menu_administration" model="ir.ui.menu">
<field name="load_xmlid" eval="True"/>
</record>
</odoo>
+2 -2
View File
@@ -149,8 +149,8 @@
</div>
<group>
<label for="groups_id" string="Access Rights"
attrs="{'invisible': [('id', '>', 0)]}"/>
<div attrs="{'invisible': [('id', '>', 0)]}">
attrs="{'invisible': [('id', '>', 0)]}" groups="base.group_no_one"/>
<div attrs="{'invisible': [('id', '>', 0)]}" groups="base.group_no_one">
<field name="groups_id" readonly="1" widget="many2many_tags" style="display: inline;"/> You will be able to define additional access rights by editing the newly created user under the Settings / Users menu.
</div>
<field name="phone" widget="phone"/>