[IMP] project: rename the See more button into Edit project in kanban
Before this commit, we rename the 'Edit' button into 'See more' but we prefer to directly edit the project when we click on this button So, it is to have 'Edit' as name and directly enter in the form view of the project in edit mode. This commit renames the button into 'Edit'. task-2638359 closes #76166 X-original-commit: e960b2966bdd16f369df9fbd8e4cf372c37bd37a
This commit is contained in:
committed by
Laurent Stukkens (LTU)
parent
6d948bdb47
commit
0302a262c8
@@ -628,16 +628,8 @@ class Project(models.Model):
|
||||
}
|
||||
|
||||
def action_view_kanban_project(self):
|
||||
self.ensure_one()
|
||||
return {
|
||||
'res_model': 'project.project',
|
||||
'type': 'ir.actions.act_window',
|
||||
'name': _("Project"),
|
||||
'res_id': self.id,
|
||||
'views': [(self.env.ref('project.edit_project').id, 'form')],
|
||||
'view_mode': 'form',
|
||||
'context': {'form_view_initial_mode': 'readonly'}
|
||||
}
|
||||
# [XBO] TODO: remove me in master
|
||||
return
|
||||
|
||||
# ---------------------------------------------
|
||||
# PROJECT UPDATES
|
||||
|
||||
@@ -85,7 +85,7 @@ tour.register('project_update_tour', {
|
||||
trigger: '.oe_kanban_global_click :contains("New Project") .o_dropdown_kanban',
|
||||
content: 'Open the project dropdown'
|
||||
}, {
|
||||
trigger: '.o_kanban_record:contains("New Project") .dropdown-menu a:contains("See More")',
|
||||
trigger: '.o_kanban_record:contains("New Project") .dropdown-menu a:contains("Edit")',
|
||||
content: 'Start editing the project',
|
||||
}, {
|
||||
trigger: '.nav-item:contains("Invoicing") .nav-link',
|
||||
|
||||
@@ -676,7 +676,8 @@
|
||||
</div>
|
||||
<div role="menuitem" class="col-4">
|
||||
<a t-if="record.privacy_visibility.raw_value == 'portal'" class="dropdown-item" role="menuitem" name="%(project.project_share_wizard_action)d" type="action">Share</a>
|
||||
<a class="dropdown-item" role="menuitem" type="object" name="action_view_kanban_project">See More</a>
|
||||
<!-- [XBO] TODO: remove the name attribute in this a tag in master -->
|
||||
<a class="dropdown-item" role="menuitem" type="edit" name="action_view_kanban_project">Edit</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user