-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwizard_poweremail_preview.xml
More file actions
51 lines (50 loc) · 2.62 KB
/
wizard_poweremail_preview.xml
File metadata and controls
51 lines (50 loc) · 2.62 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
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<!-- Power Email Template PReview -->
<record model="ir.ui.view" id="poweremail_preview_form">
<field name="name">poweremail.preview.form</field>
<field name="model">poweremail.preview</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Power Email Preview">
<field name="state" invisible="1"/>
<field name="model_ref" colspan="4"/>
<field name="enforce_from_account" colspan="4" readonly="1"/>
<field name="to" colspan="2"/>
<field name="cc" colspan="2"/>
<field name="bcc" colspan="2"/>
<field name="lang" colspan="2"/>
<field name="subject" colspan="4"/>
<separator string="Extra scope variables" colspan="4"/>
<field name="env" colspan="4" widget="codeeditor" widget_props="{'lang': 'json'}" height="100" nolabel="1"/>
<notebook>
<page string="Body preview">
<field name="body_text" colspan="4" widget="html_preview" nolabel="1"/>
</page>
<page string="Body HTML">
<field name="body_text" colspan="4" nolabel="1"/>
</page>
</notebook>
<field name="report" colspan="4"/>
<separator colspan="2"/>
<field name="save_to_drafts_prev" colspan="2"/>
<button name="action_generate_static_mail" icon="gtk-refresh" string="Preview Email" type="object" colspan="2"/>
<button name="action_send_static_mail" icon="send" string="Send Email" type="object"
attrs="{'invisible':[('state','=','error')]}" colspan="2"/>
</form>
</field>
</record>
<record id="wizard_poweremail_preview" model="ir.actions.act_window">
<field name="name">Template Preview</field>
<field name="res_model">poweremail.preview</field>
<field name="src_model">poweremail.templates</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>
</data>
</openerp>