-
Notifications
You must be signed in to change notification settings - Fork 20
/
core_view.xml
executable file
·206 lines (181 loc) · 9.56 KB
/
core_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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!--EMail client Form view -->
<record model="ir.ui.view" id="poweremail_core_selfolder_form">
<field name="name">poweremail.core_selfolder.form</field>
<field name="model">poweremail.core_selfolder</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Get Mail">
<field name="name" select="1" />
<field name="folder" select="1" />
<separator string="" colspan="4"/>
<label string="" colspan="2"/>
<group col="2" colspan="2">
<button icon="gtk-cancel" special="cancel" string="Cancel" />
<button icon="gtk-ok" name="sel_folder" string="Ok" type="object" />
</group>
</form>
</field>
</record>
<record id="act_selfolder_form" model="ir.actions.act_window">
<field name="name">IMAP Folder Selection Wizard</field>
<field name="res_model">poweremail.core_selfolder</field>
<field name="src_model">poweremail.core_accounts</field>
<field name="type">ir.actions.act_window</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="auto_refresh" eval="1" />
<field name="target">new</field>
<field name="context">{'ids':active_id}</field>
</record>
<record model="ir.ui.view" id="poweremail_core_accounts_form">
<field name="name">poweremail.core_accounts.form</field>
<field name="model">poweremail.core_accounts</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Power Email Configuration">
<group colspan="2">
<field name="name" select="1" />
<!--<field name="last_mail_id" select="1" />-->
<field name="rec_headers_den_mail" select="1" />
<!--<field name="dont_auto_down_attach" select="1" />-->
</group>
<notebook colspan="4">
<page string="Outgoing">
<separator string="Server Information" colspan="4" />
<group col="2" colspan="2">
<field name="smtpserver" select="1" colspan="2" />
<field name="smtpport" select="2" colspan="2" />
<field name="smtpssl" select="2" colspan="2" />
<field name="smtptls" select="2" colspan="2" />
</group>
<button name="check_outgoing_connection" type="object" string="Check Outgoing Connection" />
<separator string="User Information" colspan="4" />
<group col="2" colspan="2">
<field name="email_id" select="1" on_change="on_change_emailid(name,email_id)" colspan="2" />
<field name="smtppass" password="True" colspan="2" />
<field name="company" select="2" colspan="2" />
</group>
<group col="2" colspan="2">
<field name="smtpuname" select="1" colspan="2" />
<field name="user" select="2" colspan="2" />
<field name="send_pref" colspan="2" />
</group>
</page>
<page string="Incoming">
<separator string="Server Information" colspan="6" />
<group col="2" colspan="2">
<field name="iserver" select="2" colspan="2" />
<field name="isport" select="2" colspan="2" attrs="{'required':[('iserver','!=',False)]}" />
<field name="isssl" colspan="2" />
</group>
<group col="2" colspan="2">
<field name="iserver_type" select="2" colspan="2" attrs="{'required':[('iserver','!=',False)]}" />
<group col="4" colspan="2">
<field name="isfolder" colspan="2" attrs="{'invisible':[('iserver_type','=','pop3')]}" />
<button name="%(act_selfolder_form)d" type="action" string="Select Folder" attrs="{'invisible':[('iserver_type','=','pop3')]}" colspan="2" target="new" context="{'account_id': active_id}"/>
</group>
</group>
<separator string="User Information" colspan="6" />
<group col="2" colspan="2">
<field name="isuser" select="2" attrs="{'required':[('iserver','!=',False)]}" />
<field name="ispass" select="2" password="True" attrs="{'required':[('iserver','!=',False)]}" />
</group>
<group col="2" colspan="2">
<button name="check_incoming_connection" type="object" string="Check Incoming Connection" />
</group>
</page>
<page string="security" attrs="{'invisible':[('company','!=','yes')]}">
<field name="allowed_groups" attrs="{'required':[('company','=','yes')]}" />
</page>
</notebook>
<field name="state" select="1" colspan="2" />
<group col="2">
<button string="Approve Account" name="button_approval" states="draft" type="workflow" colspan="2" />
<button string="Suspend Account" name="button_suspended" states="approved" type="workflow" colspan="2" />
<button string="Request Re-activation" name="get_reapprove" states="suspended" type="workflow" colspan="2" />
<button string="Send/Receive" name="send_receive" states="approved" type="object" colspan="2" />
</group>
</form>
</field>
</record>
<record model="ir.ui.view" id="poweremail_core_accounts_tree">
<field name="name">poweremail.core_accounts.tree</field>
<field name="model">poweremail.core_accounts</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="SMTP Server">
<field name="name" select="2" />
<field name="email_id" select="2" />
<field name="smtpuname" select="2" />
<field name="user" select="2" />
<field name="smtpserver" select="2" />
<field name="smtpport" select="2" />
<field name="state" select="2" />
</tree>
</field>
</record>
<record id="poweremail_core_accounts_search" model="ir.ui.view">
<field name="name">poweremail.core_accounts.search</field>
<field name="model">poweremail.core_accounts</field>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Accounts">
<filter icon="terp-personal" string="My Accounts" name="my" domain="[('user','=',uid)]"/>
<filter icon="terp-personal+" string="Personal Accounts" domain="[('company','=','no')]"/>
<filter icon="terp-go-home" string="Company Accounts" domain="[('company','=','yes')]"/>
<separator orientation="vertical"/>
<filter icon="terp-document-new" string="Draft" name="draft" domain="[('state','=','draft')]"/>
<filter icon="terp-emblem-important" string="Suspended" domain="[('state','=','suspended')]"/>
<filter icon="terp-check" string="Approved" domain="[('state','=','approved')]"/>
<separator orientation="vertical"/>
<field name="name" select="1"/>
<field name="user" select="1"/>
<field name="email_id" select="1"/>
</search>
</field>
</record>
<record model="ir.actions.act_window" id="action_poweremail_core_accounts_tree_per">
<field name="name">Personal Account</field>
<field name="res_model">poweremail.core_accounts</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
<field name="view_id" ref="poweremail_core_accounts_tree" />
<field name="domain">[('user','=',uid),('company','=','no')]</field>
<field name="context">{'user':uid,'company':'no'}</field>
</record>
<record model="ir.actions.act_window" id="action_poweremail_core_accounts_tree_all">
<field name="name">All Accounts</field>
<field name="res_model">poweremail.core_accounts</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
<field name="view_id" ref="poweremail_core_accounts_tree" />
</record>
<record model="ir.actions.act_window" id="action_poweremail_core_accounts_tree_co">
<field name="name">Company Accounts</field>
<field name="res_model">poweremail.core_accounts</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
<field name="view_id" ref="poweremail_core_accounts_tree" />
<field name="domain">[('company','=','yes')]</field>
<field name="context">{'company':'yes'}</field>
</record>
<record model="ir.actions.act_window" id="action_poweremail_core_accounts_tree_my">
<field name="name">My Account</field>
<field name="res_model">poweremail.core_accounts</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
<field name="view_id" ref="poweremail_core_accounts_tree" />
<field name="domain">[('user','=',uid)]</field>
<field name="context">{'company':'yes'}</field>
</record>
<menuitem name="Power Email" id="menu_poweremail_administration_server" web_icon="images/poweremail.png" web_icon_hover="images/poweremail-hover.png"/>
<menuitem name="Configuration" id="menu_poweremail_configuration_server" parent="menu_poweremail_administration_server" />
<menuitem name="All Accounts" id="menu_poweremail_core_accounts_all" parent="menu_poweremail_configuration_server" action="action_poweremail_core_accounts_tree_all" groups="res_groups_pemanager" />
<menuitem name="Personal Accounts" id="menu_poweremail_core_accounts_Personal" parent="menu_poweremail_configuration_server" action="action_poweremail_core_accounts_tree_per" groups="res_groups_pemanager" />
<menuitem name="Company Accounts" id="menu_poweremail_core_accounts_Personal_co" parent="menu_poweremail_configuration_server" action="action_poweremail_core_accounts_tree_co" groups="res_groups_pemanager" />
<menuitem name="My Accounts" id="menu_poweremail_core_accounts_Personal_my" parent="menu_poweremail_configuration_server" action="action_poweremail_core_accounts_tree_my" />
</data>
</openerp>