[ADD]field parent tasks : display only current project's tasks

This commit is contained in:
2023-09-15 14:16:50 +02:00
committed by Stéphan Sainléger
parent 250ef5b5ec
commit 22a703d9bd
3 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record model="ir.ui.view" id="view_tasks_form2_parent_project_inherited">
<field name="name">view.tasks.form2.parent.project.inherited</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_form2" />
<field name="arch" type="xml">
<xpath expr="//field[@name='parent_id']" position="attributes">
<attribute name="domain">[('project_id','=', project_id)]</attribute>
</xpath>
</field>
</record>
</odoo>