summaryrefslogtreecommitdiff
path: root/addons/project/views
diff options
context:
space:
mode:
authorKevin Baptiste <kba@odoo.com>2020-03-04 14:48:17 +0000
committerYannick Tivisse <yti@odoo.com>2020-04-08 14:29:50 +0000
commit58a90952edb715dc89d46d953fb23be3158396da (patch)
treea67927e150b09e42e0db290b4481a8dfd0c055e4 /addons/project/views
parent6b41dbf6831517523d47ef31a48558613d86a741 (diff)
[IMP] project: improve usability (back2basics)
* Reword tasks in the sample project * Add a "Create and Edit" button on the project creation modal * Open the file chooser in "Set a cover image" if there are no images set * Correclty display the kanban state button on archived task * Add a button to list the tasks when deleting a project * Open file chooser for cover image: Automatically open the file chooser when setting a cover image on a task if there are no attachments to chose from. closes odoo/odoo#47306 Taskid: 2209133 Related: odoo/enterprise#9141 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/project/views')
-rw-r--r--addons/project/views/project_views.xml24
-rw-r--r--addons/project/views/res_config_settings_views.xml4
2 files changed, 18 insertions, 10 deletions
diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml
index d0b8b214754..40231d1d83e 100644
--- a/addons/project/views/project_views.xml
+++ b/addons/project/views/project_views.xml
@@ -94,7 +94,7 @@
<field name="name">project.project.form</field>
<field name="model">project.project</field>
<field name="arch" type="xml">
- <form string="Project">
+ <form string="Project" delete="0">
<header>
<button name="%(portal.portal_share_action)d" string="Share" type="action" class="oe_highlight oe_read_only"/>
</header>
@@ -242,7 +242,7 @@
<field name="name">project.project.tree</field>
<field name="model">project.project</field>
<field name="arch" type="xml">
- <tree decoration-bf="message_needaction==True" decoration-muted="active == False" string="Projects">
+ <tree decoration-bf="message_needaction==True" decoration-muted="active == False" string="Projects" delete="0">
<field name="sequence" optional="show" widget="handle"/>
<field name="message_needaction" invisible="1"/>
<field name="active" invisible="1"/>
@@ -458,7 +458,7 @@
<p class="o_view_nocontent_empty_folder">
Create a new project
</p><p>
- Organize your activities (plan tasks, track issues, invoice timesheets) for internal, personal or customer projects.
+ Or <a type="action" name="%(project.ir_actions_server_project_sample)d" tabindex="-1">activate a sample project</a> to play with.
</p>
</field>
</record>
@@ -514,10 +514,6 @@
domain="[('parent_id', '=', False)]"
attrs="{'invisible' : [('allow_subtasks', '=', False)]}"
/>
- </group>
- <!-- YTI FIXME: Clean these fake groups -->
- <group name="sales_order_group"/>
- <group name="dates">
<field name="date_deadline"/>
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}"/>
</group>
@@ -575,6 +571,15 @@
target="new"
/>
+ <record id="unlink_project_action" model="ir.actions.server">
+ <field name="name">Delete</field>
+ <field name="model_id" ref="project.model_project_project"/>
+ <field name="binding_model_id" ref="project.model_project_project"/>
+ <field name="binding_view_types">form,list</field>
+ <field name="state">code</field>
+ <field name="code">action = records.action_unlink()</field>
+ </record>
+
<record id="quick_create_task_form" model="ir.ui.view">
<field name="name">project.task.form.quick_create</field>
<field name="model">project.task</field>
@@ -642,7 +647,7 @@
<span class="fa fa-ellipsis-v"/>
</a>
<div class="dropdown-menu" role="menu">
- <a t-if="widget.editable" role="menuitem" type="set_cover" class="dropdown-item" data-field="displayed_image_id">Set Cover Image</a>
+ <a t-if="widget.editable" role="menuitem" type="set_cover" data-auto-open="1" class="dropdown-item" data-field="displayed_image_id">Set Cover Image</a>
<a name="%(portal.portal_share_action)d" role="menuitem" type="action" class="dropdown-item">Share</a>
<a t-if="widget.editable" role="menuitem" type="edit" class="dropdown-item">Edit Task</a>
<a t-if="widget.deletable" role="menuitem" type="delete" class="dropdown-item">Delete</a>
@@ -1035,6 +1040,9 @@
<p class="o_view_nocontent_smiling_face">
Create a new tag
</p>
+ <p>
+ Tags are perfect to categorize your tasks.
+ </p>
</field>
</record>
<menuitem action="project_tags_action" id="menu_project_tags_act" parent="menu_project_config"/>
diff --git a/addons/project/views/res_config_settings_views.xml b/addons/project/views/res_config_settings_views.xml
index 711edcd627f..759291fc286 100644
--- a/addons/project/views/res_config_settings_views.xml
+++ b/addons/project/views/res_config_settings_views.xml
@@ -10,7 +10,7 @@
<div class="app_settings_block" data-string="Project" string="Project" data-key="project" groups="project.group_project_manager">
<h2>Tasks Management</h2>
<div class="row mt16 o_settings_container" id="tasks_management">
- <div id="use_collaborative_pad" class="col-12 col-lg-6 o_setting_box" title="Lets the company customize which Pad installation should be used to link to new pads (for example: http://etherpad.com/).">
+ <div id="use_collaborative_pad" class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="module_pad"/>
</div>
@@ -70,7 +70,7 @@
<div class="o_setting_right_pane">
<label for="module_hr_timesheet"/>
<div class="text-muted">
- Log time on tasks
+ Track time spent on tasks.
</div>
</div>
</div>