[FIX] project: tour: misc fixes: missing extra_trigger, clean selectors,

missing _t(), adding a step to edit before asking to change a field.
This commit is contained in:
Fabien Pinckaers
2016-06-29 21:50:29 -07:00
parent 724eb557d1
commit 0ea1db4d34
2 changed files with 13 additions and 5 deletions
+1
View File
@@ -255,6 +255,7 @@
<field name="project_id" domain="[('active','=',False)]" on_change="onchange_project(project_id)" context="{'default_use_tasks':1}"/>
<field name="user_id"
on_change="onchange_user_id(user_id, context)"
class="o_task_user_field"
options='{"no_open": True}'/>
<field name="legend_blocked" invisible="1"/>
<field name="legend_normal" invisible="1"/>
+12 -5
View File
@@ -47,12 +47,19 @@ tour.register('project_tour', {
position: "bottom"
}, {
trigger: ".o_kanban_record",
content: _t("Open a task by clicking on the card"),
extra_trigger: '.o_kanban_project_tasks',
content: _t("Click on a card to get the details of the task."),
position: "bottom"
}, {
trigger: ".o_form_sheet .o_group:first",
content: 'Assign the task to one of your colleague to collaborate',
position: "left"
trigger: ".o_form_sheet .o_form_button_edit:visible",
extra_trigger: '.o_form_project_tasks',
content: _t('Click on this button to modify the task.'),
position: "bottom"
}, {
trigger: ".o_form_sheet .o_task_user_field",
extra_trigger: '.o_form_project_tasks.o_form_editable',
content: _t('<b>Assign the task</b> to someone. <i>You can create and invite a new user on the fly.</i>'),
position: "right"
}, {
trigger: ".breadcrumb li:not(.active):last",
extra_trigger: '.o_form_project_tasks',
@@ -69,7 +76,7 @@ tour.register('project_tour', {
}, {
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"
position: "right"
}]);
});