[IMP] project: Don't display onboarding data tasks while the project is archived
This commit is contained in:
@@ -143,6 +143,7 @@
|
||||
<field name="user_id" ref="base.user_root"/>
|
||||
<field name="priority">0</field>
|
||||
<field name="project_id" ref="project.project_project_data"/>
|
||||
<field name="active" eval="False"/>
|
||||
<field name="name">Welcome to Odoo</field>
|
||||
<field name="description">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.</field>
|
||||
<field name="color">2</field>
|
||||
@@ -154,6 +155,7 @@
|
||||
<field name="user_id" ref="base.user_root"/>
|
||||
<field name="priority">0</field>
|
||||
<field name="project_id" ref="project.project_project_data"/>
|
||||
<field name="active" eval="False"/>
|
||||
<field name="name">Try to play with the search bar. Use the filters</field>
|
||||
<field name="description">Come back to the tasks view to play with the filters. They are up to the form</field>
|
||||
<field name="stage_id" ref="project_stage_data_0"/>
|
||||
@@ -164,6 +166,7 @@
|
||||
<field name="user_id" ref="base.user_root"/>
|
||||
<field name="priority">0</field>
|
||||
<field name="project_id" ref="project.project_project_data"/>
|
||||
<field name="active" eval="False"/>
|
||||
<field name="name">Try to drag a task wherever your want</field>
|
||||
<field name="kanban_state">done</field>
|
||||
<field name="stage_id" ref="project_stage_data_0"/>
|
||||
@@ -174,6 +177,7 @@
|
||||
<field name="user_id" ref="base.user_root"/>
|
||||
<field name="priority">0</field>
|
||||
<field name="project_id" ref="project.project_project_data"/>
|
||||
<field name="active" eval="False"/>
|
||||
<field name="name">Guess what happens if you set this task as favorite?</field>
|
||||
<field name="description">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.</field>
|
||||
<field name="stage_id" ref="project_stage_data_0"/>
|
||||
@@ -183,6 +187,7 @@
|
||||
<field name="user_id" ref="base.user_root"/>
|
||||
<field name="priority">0</field>
|
||||
<field name="project_id" ref="project.project_project_data"/>
|
||||
<field name="active" eval="False"/>
|
||||
<field name="name">Use the chatter to collaborate with your members</field>
|
||||
<field name="description">The chatter is right below</field>
|
||||
<field name="stage_id" ref="project_stage_data_2"/>
|
||||
@@ -208,6 +213,7 @@
|
||||
<field name="user_id" ref="base.user_root"/>
|
||||
<field name="priority">0</field>
|
||||
<field name="project_id" ref="project.project_project_data"/>
|
||||
<field name="active" eval="False"/>
|
||||
<field name="name">Use tags to organize your tasks</field>
|
||||
<field name="kanban_state">blocked</field>
|
||||
<field name="stage_id" ref="project_stage_data_1"/>
|
||||
@@ -220,6 +226,7 @@
|
||||
<field name="user_id" ref="base.user_root"/>
|
||||
<field name="priority">0</field>
|
||||
<field name="project_id" ref="project.project_project_data"/>
|
||||
<field name="active" eval="False"/>
|
||||
<field name="color">3</field>
|
||||
<field name="name">Try to customize this card. Change its background.</field>
|
||||
<field name="description">Use the edit icon on the card to customize the background.</field>
|
||||
@@ -231,6 +238,7 @@
|
||||
<field name="user_id" ref="base.user_root"/>
|
||||
<field name="priority">0</field>
|
||||
<field name="project_id" ref="project.project_project_data"/>
|
||||
<field name="active" eval="False"/>
|
||||
<field name="name">Set this task as 'Ready for next stage' to proceed further in the process</field>
|
||||
<field name="description">You can change its state by clicking on the small circle on the card, or here, next to the task title.</field>
|
||||
<field name="stage_id" ref="project_stage_data_1"/>
|
||||
@@ -240,6 +248,7 @@
|
||||
<field name="user_id" ref="base.user_root"/>
|
||||
<field name="priority">0</field>
|
||||
<field name="project_id" ref="project.project_project_data"/>
|
||||
<field name="active" eval="False"/>
|
||||
<field name="name">Do you want to learn more? Try our implementation guide!</field>
|
||||
<field name="stage_id" ref="project_stage_data_2"/>
|
||||
<field name="description">Click on the bar in the upper right corner</field>
|
||||
@@ -272,6 +281,7 @@
|
||||
<field name="user_id" ref="base.user_root"/>
|
||||
<field name="priority">0</field>
|
||||
<field name="project_id" ref="project.project_project_data"/>
|
||||
<field name="active" eval="False"/>
|
||||
<field name="name">Finished with this stage? Archive it !</field>
|
||||
<field name="stage_id" ref="project_stage_data_2"/>
|
||||
<field name="description">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.</field>
|
||||
@@ -281,6 +291,7 @@
|
||||
<field name="user_id" ref="base.user_root"/>
|
||||
<field name="priority">0</field>
|
||||
<field name="project_id" ref="project.project_project_data"/>
|
||||
<field name="active" eval="False"/>
|
||||
<field name="name">You want to add a stage? Add a new column !</field>
|
||||
<field name="stage_id" ref="project_stage_data_2"/>
|
||||
<field name="description">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'.</field>
|
||||
@@ -290,6 +301,7 @@
|
||||
<field name="user_id" ref="base.user_root"/>
|
||||
<field name="priority">0</field>
|
||||
<field name="project_id" ref="project.project_project_data"/>
|
||||
<field name="active" eval="False"/>
|
||||
<field name="name">You can set a deadline on a task</field>
|
||||
<field name="stage_id" ref="project_stage_data_1"/>
|
||||
<field name="date_deadline" eval="datetime.now()+timedelta(days=30)"/>
|
||||
@@ -299,6 +311,7 @@
|
||||
<field name="user_id" ref="base.user_root"/>
|
||||
<field name="priority">0</field>
|
||||
<field name="project_id" ref="project.project_project_data"/>
|
||||
<field name="active" eval="False"/>
|
||||
<field name="name">Send a message with a picture as attachment, and see what happens!</field>
|
||||
<field name="stage_id" ref="project_stage_data_2"/>
|
||||
<field name="description">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.</field>
|
||||
@@ -312,6 +325,7 @@
|
||||
<field name="res_id" ref="project_task_data_14"/>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="msg_task_data_14" model="mail.message">
|
||||
<field name="subject">How to open the planner?</field>
|
||||
<field name="model">project.task</field>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user