-
Notifications
You must be signed in to change notification settings - Fork 20
/
mailbox_view.xml
309 lines (298 loc) · 13.4 KB
/
mailbox_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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
<?xml version="1.0" encoding="UTF-8"?>
<!--
Document : poweremail_mailbox_view.xml
Created on : 29 July, 2009, 14:27
Author : Sharoon Thomas
Description: View file for poweremail mailbox
-->
<openerp>
<data>
<!-- Power Email Template PReview -->
<record model="ir.ui.view" id="poweremail_mailbox_form">
<field name="name">poweremail.mailbox.form</field>
<field name="model">poweremail.mailbox</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Power Email Inbox">
<group col="4" colspan="2">
<field name="pem_from" colspan="4" select="1"/>
<field name="pem_cc" colspan="4" select="1"/>
<field name="date_mail" colspan="4" select="2"/>
<field name="pem_recd" colspan="2" select="1"/>
</group>
<group col="4" colspan="2">
<field name="pem_to" colspan="4" required="1" select="1" />
<field name="pem_bcc" colspan="4" select="2"/>
<field name="pem_subject" colspan="4" select="1"/>
</group>
<notebook colspan="4">
<page string="Standard Body">
<separator colspan="4" string="Standard Body" />
<notebook colspan="4">
<page string="Standard Body (Text)">
<field name="pem_body_text" nolabel="1" colspan="4" select="1"/>
</page>
<page string="Body (HTML-Web Client Only)">
<field name="pem_body_html" nolabel="1" colspan="4" widget="text_html"/>
<!--<label string="Note: HTML body can't be edited with GTK desktop client." colspan="4"/>
--></page>
</notebook>
</page>
<page string="Attachments">
<group col="4">
<separator colspan="4" string="Attachments" />
<field name="pem_attachments_ids" colspan="4" nolabel="1" />
</group>
</page>
<page string="Advanced">
<group col="4">
<field name="pem_account_id" colspan="2" />
<field name="server_ref" colspan="2" />
<field name="mail_type" colspan="2" />
<field name="folder" colspan="2" select="2"/>
<separator string="History" colspan="4" />
<field name="history" nolabel="1" colspan="4"/>
</group>
</page>
</notebook>
<separator colspan="4" string="" />
<group col="4" colspan="4">
<field name="state" colspan="2" readonly="1" />
<button name="complete_mail" type="object" string="Download Full Mail" colspan="2" states="read,unread" />
<button name="send_this_mail" type="object" string="Send Mail" />
</group>
</form>
</field>
</record>
<!--8888888888888888888888888888888888 TREE VIEWS 8888888888888888888888888888888888888888-->
<!--INBOX-->
<record model="ir.ui.view" id="poweremail_inbox_tree">
<field name="name">poweremail.mailbox.inboxtree</field>
<field name="model">poweremail.mailbox</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Power Email Inbox" colors="blue:state=='unread'">
<field name="pem_user" />
<field name="pem_from" select="1" />
<field name="pem_subject" select="1" />
<field name="pem_attachments_ids" select="2" />
<field name="date_mail" select="2" />
<field name="pem_recd" colspan="2" />
<field name="state" />
</tree>
</field>
</record>
<!--DRAFTS-->
<record model="ir.ui.view" id="poweremail_drafts_tree">
<field name="name">poweremail.mailbox.draftstree</field>
<field name="model">poweremail.mailbox</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Power Email Drafts">
<field name="pem_user" />
<field name="pem_from" select="1" />
<field name="pem_subject" select="1" />
<field name="pem_attachments_ids" select="2" />
<field name="date_mail" select="2" />
<field name="pem_recd" colspan="2" />
</tree>
</field>
</record>
<!--OUTBOX-->
<record model="ir.ui.view" id="poweremail_outbox_tree">
<field name="name">poweremail.mailbox.outboxtree</field>
<field name="model">poweremail.mailbox</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Power Email Outbox">
<field name="pem_user" />
<field name="pem_from" select="1" />
<field name="pem_subject" select="1" />
<field name="pem_attachments_ids" select="2" />
<field name="date_mail" select="2" />
<field name="pem_recd" colspan="2" />
</tree>
</field>
</record>
<!--SENT-->
<record model="ir.ui.view" id="poweremail_sentbox_tree">
<field name="name">poweremail.mailbox.sentboxtree</field>
<field name="model">poweremail.mailbox</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Power Email Sent">
<field name="pem_user" />
<field name="pem_from" select="1" />
<field name="pem_subject" select="1" />
<field name="pem_attachments_ids" select="2" />
<field name="date_mail" select="2" />
<field name="pem_recd" colspan="2" />
</tree>
</field>
</record>
<!--FOLLOWUP-->
<record model="ir.ui.view" id="poweremail_followbox_tree">
<field name="name">poweremail.mailbox.sentboxtree</field>
<field name="model">poweremail.mailbox</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Power Email Follow Up">
<field name="pem_user" />
<field name="pem_from" select="1" />
<field name="pem_subject" select="1" />
<field name="pem_attachments_ids" select="2" />
<field name="date_mail" select="2" />
<field name="pem_recd" colspan="2" />
</tree>
</field>
</record>
<!--TRASH-->
<record model="ir.ui.view" id="poweremail_trashbox_tree">
<field name="name">poweremail.mailbox.trashboxtree</field>
<field name="model">poweremail.mailbox</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Power Email Trash">
<field name="pem_user" />
<field name="pem_from" select="1" />
<field name="pem_subject" select="1" />
<field name="pem_attachments_ids" select="2" />
<field name="date_mail" select="2" />
<field name="pem_recd" colspan="2" />
</tree>
</field>
</record>
<!--8888888888888888888888888888888888 ACTIONS 8888888888888888888888888888888888888888-->
<!--INBOX-->
<record model="ir.actions.act_window" id="action_poweremail_inbox_tree">
<field name="name">Email Mailbox</field>
<field name="res_model">poweremail.mailbox</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
<field name="view_id" ref="poweremail_inbox_tree" />
<field name="domain">[('folder','=','inbox'),('pem_user','=',uid)]</field>
</record>
<!--OUTBOX-->
<record model="ir.actions.act_window" id="action_poweremail_outbox_tree">
<field name="name">Email Mailbox</field>
<field name="res_model">poweremail.mailbox</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
<field name="view_id" ref="poweremail_outbox_tree" />
<field name="domain">[('folder','=','outbox'),('pem_user','=',uid)]</field>
</record>
<!--DRAFTS-->
<record model="ir.actions.act_window" id="action_poweremail_drafts_tree">
<field name="name">Email Mailbox</field>
<field name="res_model">poweremail.mailbox</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
<field name="view_id" ref="poweremail_drafts_tree" />
<field name="domain">[('folder','=','drafts'),('pem_user','=',uid)]</field>
</record>
<!--FOLLOWUP-->
<record model="ir.actions.act_window" id="action_poweremail_follow_tree">
<field name="name">Email Mailbox</field>
<field name="res_model">poweremail.mailbox</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
<field name="view_id" ref="poweremail_followbox_tree" />
<field name="domain">[('folder','=','followup'),('pem_user','=',uid)]</field>
</record>
<!--SENT-->
<record model="ir.actions.act_window" id="action_poweremail_sent_tree">
<field name="name">Email Mailbox</field>
<field name="res_model">poweremail.mailbox</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
<field name="view_id" ref="poweremail_sentbox_tree" />
<field name="domain">[('folder','=','sent'),('pem_user','=',uid)]</field>
</record>
<!--TRASH-->
<record model="ir.actions.act_window" id="action_poweremail_trash_tree">
<field name="name">Email Mailbox</field>
<field name="res_model">poweremail.mailbox</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
<field name="view_id" ref="poweremail_trashbox_tree" />
<field name="domain">[('folder','=','trash'),('pem_user','=',uid)]</field>
</record>
<!--company-->
<!--INBOX-->
<record model="ir.actions.act_window" id="action_poweremail_inbox_tree_company">
<field name="name">Email Mailbox</field>
<field name="res_model">poweremail.mailbox</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
<field name="view_id" ref="poweremail_inbox_tree" />
<field name="domain">[('folder','=','inbox')]</field>
<field name="context">{'company':True}</field>
</record>
<!--OUTBOX-->
<record model="ir.actions.act_window" id="action_poweremail_outbox_tree_company">
<field name="name">Email Mailbox</field>
<field name="res_model">poweremail.mailbox</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
<field name="view_id" ref="poweremail_outbox_tree" />
<field name="domain">[('folder','=','outbox')]</field>
<field name="context">{'company':True}</field>
</record>
<!--DRAFTS-->
<record model="ir.actions.act_window" id="action_poweremail_drafts_tree_company">
<field name="name">Email Mailbox</field>
<field name="res_model">poweremail.mailbox</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
<field name="view_id" ref="poweremail_drafts_tree" />
<field name="domain">[('folder','=','drafts')]</field>
<field name="context">{'company':True}</field>
</record>
<!--FOLLOWUP-->
<record model="ir.actions.act_window" id="action_poweremail_follow_tree_company">
<field name="name">Email Mailbox</field>
<field name="res_model">poweremail.mailbox</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
<field name="view_id" ref="poweremail_followbox_tree" />
<field name="domain">[('folder','=','followup')]</field>
<field name="context">{'company':True}</field>
</record>
<!--SENT-->
<record model="ir.actions.act_window" id="action_poweremail_sent_tree_company">
<field name="name">Email Mailbox</field>
<field name="res_model">poweremail.mailbox</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
<field name="view_id" ref="poweremail_sentbox_tree" />
<field name="domain">[('folder','=','sent')]</field>
<field name="context">{'company':True}</field>
</record>
<!--TRASH-->
<record model="ir.actions.act_window" id="action_poweremail_trash_tree_company">
<field name="name">Email Mailbox</field>
<field name="res_model">poweremail.mailbox</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
<field name="view_id" ref="poweremail_trashbox_tree" />
<field name="domain">[('folder','=','trash')]</field>
<field name="context">{'company':True}</field>
</record>
<!--8888888888888888888888888888888888 MENUS 8888888888888888888888888888888888888888-->
<menuitem name="MailBox" id="menu_poweremail_mailbox_all_main2" parent="menu_poweremail_administration_server" />
<menuitem name="Personal" id="menu_poweremail_personal" parent="menu_poweremail_mailbox_all_main2" />
<menuitem name="Inbox" id="menu_poweremail_inbox" parent="menu_poweremail_personal" action="action_poweremail_inbox_tree" />
<menuitem name="Drafts" id="menu_poweremail_drafts" parent="menu_poweremail_personal" action="action_poweremail_drafts_tree" />
<menuitem name="Outbox" id="menu_poweremail_outbox" parent="menu_poweremail_personal" action="action_poweremail_outbox_tree" />
<menuitem name="Follow-up" id="menu_poweremail_follow" parent="menu_poweremail_personal" action="action_poweremail_follow_tree" />
<menuitem name="Sent" id="menu_poweremail_sent" parent="menu_poweremail_personal" action="action_poweremail_sent_tree" />
<menuitem name="Trash" id="menu_poweremail_trash" parent="menu_poweremail_personal" action="action_poweremail_trash_tree" />
<menuitem name="Company" id="menu_poweremail_company" parent="menu_poweremail_mailbox_all_main2" />
<menuitem name="Inbox" id="menu_poweremail_inbox_company" parent="menu_poweremail_company" action="action_poweremail_inbox_tree_company" />
<menuitem name="Drafts" id="menu_poweremail_drafts_company" parent="menu_poweremail_company" action="action_poweremail_drafts_tree_company" />
<menuitem name="Outbox" id="menu_poweremail_outbox_company" parent="menu_poweremail_company" action="action_poweremail_outbox_tree_company" />
<menuitem name="Follow-up" id="menu_poweremail_follow_company" parent="menu_poweremail_company" action="action_poweremail_follow_tree_company" />
<menuitem name="Sent" id="menu_poweremail_sent_company" parent="menu_poweremail_company" action="action_poweremail_sent_tree_company" />
<menuitem name="Trash" id="menu_poweremail_trash_company" parent="menu_poweremail_company" action="action_poweremail_trash_tree_company" />
</data>
</openerp>