summaryrefslogtreecommitdiff
path: root/addons/project/views
diff options
context:
space:
mode:
authorHardik Prajapati <hpr@odoo.com>2020-04-07 12:15:57 +0000
committerYannick Tivisse <yti@odoo.com>2020-06-24 11:10:33 +0000
commit63cbe8678a35ddfbdeed731b1da28fa5a3b71173 (patch)
tree4e1e8cd33c5cd828ffc87accadd85f00102b9690 /addons/project/views
parentfdc20d13bb6c4f22bcfcf88384f8a13a2cb4b005 (diff)
[IMP] project,sale,hr(_timesheet): Generic improments for project
Done the below several improvement on project: - move the stage description and tooltips to the debug mode - remove the 'need assistance' tag - Change the app description in manifest file 'Organize and plan your projects.' - Change the burger menu sequence into: Edit/Delete/Share/Set Cover Image - change the description of the pad feature into, 'edit tasks description collaboratively in real time. see each author's text in a distinct color.' - add the following tooltip for the allow_billable field, 'invoice your time and material from tasks.' - add an fa-stopwatch icon in front of the Start & the Stop buttons in task's form view - rename the 'validate time spent' modal into 'confirm time spent ' + increase the size of the description field + this field should not be required - project overview: rename 'Hours recorded' into' Recorded Hours' - project form view: disable the creation for the portal users field - Rename the 'ready for next stage' kanban state into 'Ready' TaskID: 2232051 Related Enterprise PR: https://github.com/odoo/enterprise/pull/9961 closes odoo/odoo#49694 Closes: #49694 Related: odoo/enterprise#9961 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/project/views')
-rw-r--r--addons/project/views/project_views.xml8
-rw-r--r--addons/project/views/res_config_settings_views.xml2
2 files changed, 7 insertions, 3 deletions
diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml
index 661a0ea955f..f452d6fb870 100644
--- a/addons/project/views/project_views.xml
+++ b/addons/project/views/project_views.xml
@@ -307,7 +307,7 @@
<field name="analytic_account_id" domain="['|', ('company_id', '=', company_id), ('company_id', '=', False)]" context="{'default_partner_id': partner_id}" groups="analytic.group_analytic_accounting"/>
<field name="privacy_visibility" widget="radio"/>
<field name="allowed_internal_user_ids" widget="many2many_tags" attrs="{'invisible': [('privacy_visibility', '!=', 'followers')]}"/>
- <field name="allowed_portal_user_ids" widget="many2many_tags" attrs="{'invisible': [('privacy_visibility', '!=', 'portal')]}"/>
+ <field name="allowed_portal_user_ids" widget="many2many_tags" options="{'no_create': True}" attrs="{'invisible': [('privacy_visibility', '!=', 'portal')]}"/>
<field name="company_id" groups="base.group_multi_company"/>
</group>
@@ -788,7 +788,11 @@
<div class="dropdown-menu" role="menu">
<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.editable" role="menuitem" type="edit" class="dropdown-item">Edit</a>
+ <a t-if="widget.editable" role="menuitem" class="dropdown-item" name="toggle_active" type="object">
+ <t t-if="record.active.raw_value">Archive</t>
+ <t t-if="!record.active.raw_value">Restore</t>
+ </a>
<a t-if="widget.deletable" role="menuitem" type="delete" class="dropdown-item">Delete</a>
<div role="separator" class="dropdown-divider"></div>
<ul class="oe_kanban_colorpicker" data-field="color"/>
diff --git a/addons/project/views/res_config_settings_views.xml b/addons/project/views/res_config_settings_views.xml
index 79b8e2a03cb..03db2df0758 100644
--- a/addons/project/views/res_config_settings_views.xml
+++ b/addons/project/views/res_config_settings_views.xml
@@ -17,7 +17,7 @@
<div class="o_setting_right_pane" name="pad_project_right_pane">
<label for="module_pad"/>
<div class="text-muted">
- Use collaborative rich text pads on tasks
+ Edit tasks' description collaboratively in real time. See each author's text in a distinct color.
</div>
</div>
</div>