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.
34 lines
1.7 KiB
34 lines
1.7 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Inheriting project.project form view and adding new field to project_id_jira -->
|
|
<record id="edit_project" model="ir.ui.view">
|
|
<field name="name">project.project.view.form.inherit.odoo.jira.connector</field>
|
|
<field name="model">project.project</field>
|
|
<field name="type">form</field>
|
|
<field name="inherit_id" ref="project.edit_project"/>
|
|
<field name="arch" type="xml">
|
|
<field name="user_id" position="after">
|
|
<field name="project_id_jira"/>
|
|
</field>
|
|
<xpath expr="//div[hasclass('oe_button_box')]" position="inside">
|
|
<field name="sprint_active" invisible="1"/>
|
|
<button string="Sprint" class="oe_stat_button" type="object" name="action_get_sprint" icon="fa-clock-o" width="5"
|
|
height="5" attrs="{'invisible':[('sprint_active', '!=' ,True)]}"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<!-- Inheriting the project.task form view and adding new field task_id_jira -->
|
|
<record id="view_task_form2" model="ir.ui.view">
|
|
<field name="name">project.task.view.form.inherit.odoo.jira.connector</field>
|
|
<field name="model">project.task</field>
|
|
<field name="type">form</field>
|
|
<field name="inherit_id" ref="project.view_task_form2"/>
|
|
<field name="arch" type="xml">
|
|
<field name="tag_ids" position="after">
|
|
<field name="task_id_jira" help="id of task in jira."/>
|
|
<field name="sprint_id" attrs="{'invisible':[('task_sprint_active', '!=' ,True)]}" help="related sprint."/>
|
|
<field name="task_sprint_active" invisible="1"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|