-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathhr_expense_view.xml
100 lines (93 loc) · 4.72 KB
/
hr_expense_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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_email_enhance_form" model="ir.ui.view">
<field name="name">view.email.enhance.form</field>
<field name="model">mail.mail</field>
<field name="arch" type="xml">
<form string="Email message">
<header>
<button name="send" string="Send Now" type="object" states='outgoing' class="oe_highlight" context="{'expense_id' : active_id}"/>
<button name="mark_outgoing" string="Retry" type="object" states='exception,cancel'/>
<button name="cancel" string="Cancel" type="object" states='outgoing'/>
<field name="state" widget="statusbar" statusbar_visible="outgoing,sent,received,exception,cancel"/>
</header>
<sheet>
<field name="mail_message_id" required="0" invisible="1"/>
<div style="vertical-align: top;">
by <field name="author_id" class="oe_inline" string="User" readonly="1"/> on <field name="date" readonly="1" class="oe_inline"/>
<button name="%(mail.action_email_compose_message_wizard)d" string="Reply" type="action" icon="terp-mail-replied"
context="{'default_composition_mode':'reply', 'default_parent_id': mail_message_id}" states='received,sent,exception,cancel'/>
</div>
<group>
<field name="email_from" readonly='1'/>
<!-- <field name="recipient_ids" widget="many2many_tags"/> -->
<field name="email_to" string="To Employee" readonly="True" />
<field name="email_cc"/>
</group>
<label for="subject" class="oe_edit_only"/>
<h2><field name="subject"/></h2>
<notebook>
<page string="Body">
<field name="body_html"/>
</page>
<!-- <page string="Attachments">
<field name="attachment_ids"/>
</page> -->
</notebook>
</sheet>
</form>
</field>
</record>
<record id="action_view_mail_mail" model="ir.actions.act_window">
<field name="name">Email Enhance</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mail.mail</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="view_id" ref="view_email_enhance_form"/>
</record>
<record id="view_email_enhance_line_form" model="ir.ui.view">
<field name="name">email.enhance.line.form</field>
<field name="model">hr.email.enhance</field>
<field name="priority">1</field>
<field name="arch" type="xml">
<form string="Email Enhance">
<group>
<group>
<field name="mail_id"/>
<field name="subject"/>
<field name="body_html"/>
<field name="expense_id"/>
</group>
<group>
<field name="state"/>
</group>
</group>
</form>
</field>
</record>
<record id="view_expenses_form" model="ir.ui.view">
<field name="name">hr.expense.form</field>
<field name="model">hr.expense.expense</field>
<field name="inherit_id" ref="hr_expense_advance_clearing.view_expenses_form_advance"/>
<field name="priority" eval="10"/>
<field name="arch" type="xml">
<xpath expr="//page[last()]" position="after">
<page name="messageing" string="Messaging">
<button name="%(pabi_email_enhance.action_view_mail_mail)d" string="Send Mail" type="action" class="oe_highlight"/>
<field name="message_mail">
<tree>
<field name="subject"/>
<field name="recipient_ids" string='To Employee'/>
<field name="state"/>
</tree>
</field>
</page>
</xpath>
</field>
</record>
<!-- <menuitem name="Emails" id="menu_mail_mail" parent="pabi_apps_config.menu_pabi2_config_unused_menu" action="action_view_mail_mail" sequence="500" /> -->
</data>
</openerp>