-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdetail_create_group_views.xml
More file actions
91 lines (88 loc) · 3.85 KB
/
detail_create_group_views.xml
File metadata and controls
91 lines (88 loc) · 3.85 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Create Group Detail Form View -->
<record id="spp_cr_detail_create_group_form" model="ir.ui.view">
<field name="name">spp.cr.detail.create_group.form</field>
<field name="model">spp.cr.detail.create_group</field>
<field name="arch" type="xml">
<form string="Create New Group Details">
<header>
<button
name="action_proceed_to_cr"
string="Proceed"
type="object"
class="btn-primary"
invisible="approval_state != 'draft'"
/>
<button
name="action_proceed_to_cr"
string="Proceed"
type="object"
class="btn-primary"
invisible="approval_state != 'revision'"
/>
<field
name="approval_state"
widget="statusbar"
statusbar_visible="draft,pending,approved,applied"
/>
</header>
<sheet>
<group>
<group string="Group Information">
<field name="group_name" required="1" />
<field name="group_type_id" options="{'no_create': True}" />
</group>
<group string="Contact">
<field name="phone" />
<field name="email" />
</group>
</group>
<separator string="Head of Household" />
<group>
<group>
<field name="create_new_head" />
</group>
</group>
<group invisible="create_new_head">
<group string="Select Existing Individual">
<field
name="head_individual_id"
options="{'no_create': True}"
/>
</group>
</group>
<group invisible="not create_new_head">
<group string="New Head Information">
<field name="head_given_name" required="create_new_head" />
<field name="head_family_name" required="create_new_head" />
<field name="head_name" readonly="1" force_save="1" />
<field name="head_birthdate" />
<field
name="head_gender_id"
options="{'no_create': True}"
/>
<field name="head_phone" />
</group>
</group>
<separator string="Address" />
<group>
<group>
<field name="address_line1" />
<field name="address_line2" />
<field name="city" />
</group>
<group>
<field name="state_id" options="{'no_create': True}" />
<field name="postal_code" />
<field name="country_id" options="{'no_create': True}" />
</group>
</group>
<group invisible="1">
<field name="created_group_id" />
</group>
</sheet>
</form>
</field>
</record>
</odoo>