From bfa98c718de1e77e860e49927017ff7cf90af2fb Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Wed, 31 Aug 2016 11:02:04 +0200 Subject: [PATCH] [IMP] project: Don't display onboarding data tasks while the project is archived --- addons/project/data/project_data.xml | 14 ++++++++++++++ addons/project/models/project.py | 5 +++++ 2 files changed, 19 insertions(+) diff --git a/addons/project/data/project_data.xml b/addons/project/data/project_data.xml index 14ec3968319..1f4148b7377 100644 --- a/addons/project/data/project_data.xml +++ b/addons/project/data/project_data.xml @@ -143,6 +143,7 @@ 0 + Welcome to Odoo Welcome! This project has the objective to show you all the main feature in the project app. Each card will help you to manage your projects easily in a few minutes. 2 @@ -154,6 +155,7 @@ 0 + Try to play with the search bar. Use the filters Come back to the tasks view to play with the filters. They are up to the form @@ -164,6 +166,7 @@ 0 + Try to drag a task wherever your want done @@ -174,6 +177,7 @@ 0 + Guess what happens if you set this task as favorite? Click on the top left star to change the priority and come back in the tasks view. You task is now at the top of the column. @@ -183,6 +187,7 @@ 0 + Use the chatter to collaborate with your members The chatter is right below @@ -208,6 +213,7 @@ 0 + Use tags to organize your tasks blocked @@ -220,6 +226,7 @@ 0 + 3 Try to customize this card. Change its background. Use the edit icon on the card to customize the background. @@ -231,6 +238,7 @@ 0 + Set this task as 'Ready for next stage' to proceed further in the process You can change its state by clicking on the small circle on the card, or here, next to the task title. @@ -240,6 +248,7 @@ 0 + Do you want to learn more? Try our implementation guide! Click on the bar in the upper right corner @@ -272,6 +281,7 @@ 0 + Finished with this stage? Archive it ! Click on the gear icon on the column, to archive the stage, with all the tasks in it. You can also archive one card only, by clicking on the button in the task form view. @@ -281,6 +291,7 @@ 0 + You want to add a stage? Add a new column ! Click on the last column to create a stage. The name depends on the process. For example, in a customer service process, a stage name may be 'Backlog', 'Waiting Customer Feedback' or 'Done'. @@ -290,6 +301,7 @@ 0 + You can set a deadline on a task @@ -299,6 +311,7 @@ 0 + Send a message with a picture as attachment, and see what happens! In the chatter, sending an email with an attachment will display the picture on the card. When there are several image attachments, you can choose which one you want to display. @@ -312,6 +325,7 @@ + How to open the planner? project.task diff --git a/addons/project/models/project.py b/addons/project/models/project.py index 30f32152851..f1acc56bbd6 100644 --- a/addons/project/models/project.py +++ b/addons/project/models/project.py @@ -137,6 +137,11 @@ class Project(models.Model): if project: project.write({'active': True}) + cover_image = self.env.ref('project.msg_task_data_14_attach', False) + cover_task = self.env.ref('project.project_task_data_14', False) + if cover_image and cover_task: + cover_task.write({'displayed_image_id': cover_image.id}) + # Change the help message on the action (no more activate project) action = self.env.ref('project.open_view_project_all', False) action_data = None