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.
 
 
 
 
 

39 lines
1.6 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- inherit view_task_form2 to add unique_code-->
<record id="view_task_form2" model="ir.ui.view">
<field name="name">project.task.form.inherit.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>
<!-- inherit view_task_tree2 to add unique_code-->
<record id="view_task_tree2" model="ir.ui.view">
<field name="name">project.task.tree.inherit.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>
<!-- inherit view_task_kanban to add unique_code-->
<record id="view_task_kanban" model="ir.ui.view">
<field name="name">project.task.kanban.inherit.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>
</data>
</odoo>