[IMP] project: adapt tour to always edit
X-original-commit: 454f82e39e1cb4fb7b48db9470a58f304992a0c1 Part-of: odoo/odoo#101729
This commit is contained in:
@@ -106,12 +106,30 @@ tour.register('project_tour', {
|
||||
content: "Schedule your activity once it is ready.",
|
||||
position: "bottom",
|
||||
run: "click",
|
||||
}, {
|
||||
trigger: ".o_field_widget[name='user_ids'] input",
|
||||
extra_trigger: '.o_form_project_tasks',
|
||||
content: _t("Assign a responsible to your task"),
|
||||
position: "right",
|
||||
run: "text a"
|
||||
}, {
|
||||
trigger: ".ui-autocomplete > li > a:not(:has(i.fa))",
|
||||
auto: true,
|
||||
}, {
|
||||
trigger: ".o_form_button_save",
|
||||
extra_trigger: '.o_form_project_tasks.o_form_dirty',
|
||||
content: Markup(_t("You have unsaved changes - no worries! Odoo will automatically save it as you navigate.<br/> You can discard these changes from here or manually save your task.<br/>Let's save it manually.")),
|
||||
position: "bottom",
|
||||
}, {
|
||||
trigger: ".breadcrumb-item:not(.active):last",
|
||||
extra_trigger: '.o_form_project_tasks.o_form_saved',
|
||||
extra_trigger: '.o_form_project_tasks',
|
||||
content: Markup(_t("Let's go back to the <b>kanban view</b> to have an overview of your next tasks.")),
|
||||
position: "right",
|
||||
run: 'click',
|
||||
}, {
|
||||
trigger: '.o_kanban_renderer',
|
||||
// last step to confirm we've come back before considering the tour successful
|
||||
auto: true
|
||||
}]);
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user