Hi everyone,
we want to have the possibility to show or hide the chatter in the Tasks based on a flag inside the Project. Is it possible?
We tried to develop a module in which the task's view is inherited and modified, but it isn't working
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<record id="view_task_form_inherit_hide_chatter" model="ir.ui.view">
<field name="name">project.task.form.inherit.hide.chatter</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_form2"/>
<field name="arch" type="xml">
<xpath expr="//chatter" position="attributes">
<attribute name="invisible">{'invisible': [('project_id.x_studio_show_chatter', '=', False)]}</attribute>
</xpath>
</field>
</record>
</data>
</odoo>