-
Notifications
You must be signed in to change notification settings - Fork 20
/
serveraction_view.xml
61 lines (57 loc) · 2.28 KB
/
serveraction_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
<?xml version="1.0"?>
<openerp>
<data>
<record model="ir.ui.view"
id="view_server_action_form_poweremail_1">
<field name="name">ir.actions.server.form.poweremail_1</field>
<field name="model">ir.actions.server</field>
<field name="type">form</field>
<field name="inherit_id" ref="base.view_server_action_form" />
<field name="arch" type="xml">
<xpath expr="/form/notebook" position="inside">
<page string="Email Configuration"
attrs="{'invisible':[('state','!=','poweremail')]}">
<separator colspan="4"
string="Email Configuration" />
<field name="poweremail_template"
domain="[('object_name','=',model_id)]"
attrs="{'required':[('state','=','poweremail')]}" />
<newline />
<label colspan="4"
string="All values for the mail can be configured in the template editor itself."
align="0.0" />
</page>
</xpath>
</field>
</record>
<record model="ir.ui.view"
id="view_server_action_form_poweremail_2">
<field name="name">ir.actions.server.form.poweremail_2</field>
<field name="model">ir.actions.server</field>
<field name="type">form</field>
<field name="inherit_id" ref="base.view_server_action_form" />
<field name="arch" type="xml">
<xpath
expr="/form/notebook/page/field[@name='srcmodel_id']"
position="replace">
<field name="srcmodel_id" select="2"
attrs="{'required':[('state','!=','dummy'), ('state','!=','sms'), ('state','!=','code'), ('state','!=','loop'),('state','!=','trigger'), ('state','!=','client_action'), ('state','!=','email'), ('state','!=','sms'), ('state','!=','other'), ('state','!=','poweremail')]}" />
</xpath>
</field>
</record>
<record model="ir.ui.view"
id="view_server_action_form_poweremail_3">
<field name="name">ir.actions.server.form.poweremail_1</field>
<field name="model">ir.actions.server</field>
<field name="type">form</field>
<field name="inherit_id" ref="base.view_server_action_form" />
<field name="arch" type="xml">
<xpath
expr="/form/notebook/page/field[@name='copy_object']"
position="replace">
<field name="copy_object" on_change="change_object(copy_object, state)" select="2" attrs="{'required':[('state','=','object_copy')]}"/>
</xpath>
</field>
</record>
</data>
</openerp>