When the 'collaborative pads' option is activated for a project, and the visibility is set to 'portal users', it is possible to define the access level to pads to edit task descriptions. - If set to 'internal users', the behavior stays the same. - If set to 'portal users', a portal user has access to a pad to edit task descriptions on the portal. When configured for portal users access, by default, the task description is displayed with an 'edit' button on top of it. On 'edit' button click, the page is re-rendered with an additional url parmater 'edit=1' to switch to edit mode. In edit mode, the task description is shown in a collaborative pad, with a 'Save' button on top of it. On 'save' button click, the page is re-rendered with the 'edit' url parameter, to switch in classic mode (read-only). TaskID: 2204379 [IMP] project: collaborative pads in portal In order to be (easily) able to add buttons to the right of the description title, the description title is put inside a d-flex div. closes odoo/odoo#46591 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
23 lines
574 B
Python
23 lines
574 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
{
|
|
'name': 'Pad on tasks',
|
|
'category': 'Services/Project',
|
|
'description': """
|
|
This module adds a PAD in all project form views.
|
|
=================================================
|
|
""",
|
|
'depends': [
|
|
'project',
|
|
'pad'
|
|
],
|
|
'data': [
|
|
'views/res_config_settings_views.xml',
|
|
'views/project_views.xml',
|
|
'views/project_portal_templates.xml',
|
|
'views/project_portal_assets.xml'
|
|
],
|
|
'auto_install': True,
|
|
}
|