-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathres_partner.xml
More file actions
110 lines (109 loc) · 5.84 KB
/
res_partner.xml
File metadata and controls
110 lines (109 loc) · 5.84 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<odoo>
<record model="ir.ui.view" id="coop_partner_inherited_view_form">
<field name="name">Polln Coop Form View</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="easy_my_coop.view_partner_form_easy_my_coop" />
<field name="priority">99</field>
<field name="arch" type="xml">
<xpath expr="//button[@id='action_view_update_partner_info']/.." position="replace" />
<field name="age" position="after">
<field name="gender" />
</field>
<xpath expr="//field[@name='member']/../.." position='replace' />
<page name="share" position="replace">
<page name="easy_my_coop_status" string="Coop Status">
<group>
<group>
<field name="member" invisible="1"/>
<field name="representative"
attrs="{'invisible':['|',('parent_id','=',False),('is_company','=',True)]}"/>
<field name="cooperator_register_number"
readonly="True"
attrs="{'invisible':[('member','=',False)]}"/>
<field name="company_register_number"
readonly="True"
attrs="{'invisible':[('is_company','=',False)]}"/>
<field name="coop_candidate"
groups="easy_my_coop.group_easy_my_coop_user"/>
<field name="cooperator" invisible="True"
groups="easy_my_coop.group_easy_my_coop_manager"/>
<field name="member"
groups="easy_my_coop.group_easy_my_coop_manager"/>
<field name="cooperator_type"
attrs="{'invisible':[('member','=',False)]}"/>
<field name="effective_date"
attrs="{'invisible':[('member','=',False)]}"/>
</group>
<group name="approvals" attrs="{'invisible':[('cooperator','=',False)]}">
<field name="internal_rules_approved"/>
<field name="data_policy_approved"/>
<field name="financial_risk_approved"/>
<field name="generic_rules_approved"/>
</group>
</group>
<separator string="Shares" />
<group>
<field name="number_of_share"/>
<field name="total_value"/>
</group>
<field name="share_ids">
<tree create="false">
<field name="effective_date"/>
<field name="share_short_name"/>
<field name="share_number"
sum="Total of shares"/>
<field name="share_unit_price"/>
<field name="total_amount_line"
sum="Total subscribed amount"/>
</tree>
</field>
<separator string="Share Subscriptions" />
<field name="subscription_request_ids">
<tree create="false" delete="false" edit="false">
<field name="share_short_name"/>
<field name="ordered_parts"
sum="Total of shares"/>
<field name="share_unit_price"/>
<field name="subscription_amount"
sum="Total subscribed amount"/>
<field name="type"/>
<field name="state"/>
</tree>
</field>
</page>
</page>
<page name="share_subscription" position="replace" />
</field>
</record>
<record model="ir.ui.view" id="coop_partner_inherited_view_form_eater">
<field name="name">Polln Coop Form View</field>
<field name="model">res.partner</field>
<field
name="inherit_id"
ref="beesdoo_shift.super_coop_partner_inherited_view_form"
/>
<field name="priority">99</field>
<field name="arch" type="xml">
<field name="eater" position="replace" />
<field name="parent_eater_id" position="replace" />
<field name="is_worker" position="after" >
<field name="worker_store" readonly="0" string="Force Worker" />
<field name="eater" attrs="{'invisible': [('customer', '=', False)]}" />
<field name="parent_eater_id" attrs="{'invisible' : [('eater', '!=', 'eater')]}" readonly="0"/>
</field>
<button name="temporary_exempt" position="after">
<button string="Create Subscription"
name="%(easy_my_coop.action_view_create_subscription)d"
type="action"
context="{'default_active_id': active_id}"
groups="easy_my_coop.group_easy_my_coop_user"/>
<button id="action_view_update_partner_info"
string="Update info"
name="%(easy_my_coop.action_view_update_partner_info)d"
type="action"
context="{'default_active_id': active_id}"
groups="easy_my_coop.group_easy_my_coop_user"/>
</button>
</field>
</record>
</odoo>