You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

36 lines
1.6 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inherits the form view of Project Task to add the Unique Code -->
<record id="view_task_form2" model="ir.ui.view">
<field name="name">project.task.view.form.inherit.project.task.unique.code</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='project_id']" position="before">
<field name="unique_code"/>
</xpath>
</field>
</record>
<!-- Inherits the tree view of Project Task to add the Unique Code -->
<record id="view_task_tree2" model="ir.ui.view">
<field name="name">project.task.view.tree.inherit.project.task.unique.code</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_tree2"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='project_id']" position="before">
<field name="unique_code"/>
</xpath>
</field>
</record>
<!-- Inherits the kanban view of Project Task to add the Unique Code -->
<record id="view_task_kanban" model="ir.ui.view">
<field name="name">project.task.view.kanban.inherit.project.task.unique.code</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_kanban"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="unique_code"/>
</field>
</field>
</record>
</odoo>