[FIX] project: fix the project_id field invisible on sub-task form view
Purpose of this commit is to hide the project_id field on form view of sub_task Taskid: 2645909 Closes: odoo#76555 X-original-commit: 403fbccfffcebb77b4c8bfdfcc48c4e08efe1da3 Part-of: odoo/odoo#77006
This commit is contained in:
@@ -827,10 +827,10 @@
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<label for="project_id" class="oe_read_only"/>
|
||||
<label for="project_id" attrs="{'invisible': [('parent_id', '!=', False)]}" class="oe_read_only"/>
|
||||
<div colspan="1" class="oe_read_only">
|
||||
<i class="o_project_task_project_field text-danger" attrs="{'invisible': [('project_id', '!=', False)]}">Private</i>
|
||||
<field name="project_id" attrs="{'invisible': [('project_id', '=', False)]}" nolabel="1"/>
|
||||
<field name="project_id" attrs="{'invisible': ['|', ('parent_id', '!=', False), ('project_id', '=', False)]}" nolabel="1"/>
|
||||
</div>
|
||||
<field name="project_id" attrs="{'invisible': [('parent_id', '!=', False)]}" domain="[('active', '=', True), ('company_id', '=', company_id)]"
|
||||
placeholder="Private" class="o_project_task_project_field oe_edit_only"/>
|
||||
|
||||
Reference in New Issue
Block a user