forked from OCA/project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project_categ_view.xml
40 lines (33 loc) · 1.54 KB
/
project_categ_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Project form -->
<record id="project_form_view_categs" model="ir.ui.view">
<field name="name">project_form_view_categs</field>
<field name="model">project.project</field>
<field name="inherit_id" ref="project.edit_project"/>
<field name="arch" type="xml">
<field name="parent_id" position="after">
<field name="issue_categ_id" domain="[('child_ids','!=',False)]"/>
</field>
</field>
</record>
<!-- Project Issue form -->
<record id="project_issue_form_view_categs" model="ir.ui.view">
<field name="name">project_issue_form_view_categs</field>
<field name="model">project.issue</field>
<field name="inherit_id" ref="project_issue.project_issue_form_view"/>
<field name="arch" type="xml">
<field name="project_id" position="attributes">
<attribute name="on_change">onchange_project(project_id)</attribute>
</field>
<field name="project_id" position="after">
<field name="issue_categ_id" invisible="1"/>
</field>
<field name="categ_ids" position="attributes">
<attribute name="attrs">{'required':[('issue_categ_id','!=',False)]}</attribute>
</field>
</field>
</record>
</data>
</openerp>