-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcrm_view.xml
More file actions
112 lines (110 loc) · 5.47 KB
/
Copy pathcrm_view.xml
File metadata and controls
112 lines (110 loc) · 5.47 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
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
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="crm_case-view" model="ir.ui.view">
<field name="name">crm.case.form</field>
<field name="model">crm.case</field>
<field name="type">form</field>
<field name="inherit_id" ref="crm.crm_case-view" />
<field name="arch" type="xml">
<xpath expr="//button[@name='autoassign']" position="replace">
<group colspan="1" col="1">"
<button name="autoassign" string="Assign to me" type="object"/>
<button name="autowatch" string="Watch this case" type="object"/>
</group>
</xpath>
<xpath expr="//button[@name='case_log_reply']" position="replace">
<button name="open_log_reply_attachment" states="open" string="Send Partner & Historize" type="object"/>
</xpath>
<xpath expr="(//field[@name='description'])[2]" position="attributes">
<attribute name="widget">markdown_editor</attribute>
</xpath>
<!-- Remove old Email_CC -->
<xpath expr="//field[@name='email_cc']" position="replace"></xpath>
<!-- ADD Watchers -->
<page string="History" position="before">
<page string="Conversations">
<field name="conversation_mails" nolabel="1" colspan="4" />
</page>
<page string="Watchers">
<separator colspan="4" string="Watchers Addresses (CC)"/>
<field name="email_cc" nolabel="1" colspan="4"/>
<field name="cc_address_ids" nolabel="1" mode="tree,form"
on_change="_onchange_address_ids('cc', cc_address_ids)"
colspan="4">
<tree>
<field name="partner_id"/>
<field name="name"/>
<field name="email"/>
</tree>
</field>
<separator colspan="4" string="Secret Watchers Addresses (BCC)"/>
<field name="email_bcc" nolabel="1" colspan="4"/>
<field name="bcc_address_ids" mode="tree,form" nolabel="1"
on_change="_onchange_address_ids('bcc', bcc_address_ids)">
<tree>
<field name="partner_id"/>
<field name="name"/>
<field name="email"/>
</tree>
</field>
</page>
<page string="Case-Related Attachments">
<field name="attachment_ids" nolabel="1">
<tree>
<field name="datas_fname"/>
<field name="create_date"/>
<field name="associated_object"/>
</tree>
</field>
</page>
</page>
</field>
</record>
<record id="crm_case_rule-pmail-view" model="ir.ui.view">
<field name="name">crm.case.rule.form</field>
<field name="model">crm.case.rule</field>
<field name="inherit_id" ref="crm.crm_case_rule-view"/>
<field name="type">form</field>
<field name="arch" type="xml">
<page string="E-Mail Actions" position="replace">
</page>
<field name="act_email_cc" position="after">
<separator colspan="4" string="PowerEmail Template"/>
<field colspan="4" name="pm_template_id"/>
<field name="act_mail_to_user"/>
<field name="act_mail_to_partner"/>
<field name="act_mail_to_watchers"/>
<field name="act_mail_to_email"/>
</field>
</field>
</record>
<record id="crm_case_rule_tree-pmail-view" model="ir.ui.view">
<field name="name">crm.case.rule.tree</field>
<field name="model">crm.case.rule</field>
<field name="inherit_id" ref="crm.crm_case_rule_tree-view"/>
<field name="type">tree</field>
<field name="arch" type="xml">
<field name="active" position="after">
<field name="pm_template_id"/>
</field>
</field>
</record>
<record model="ir.actions.act_window" id="action_sc_link_case_emails">
<field name="name">Conversation Emails</field>
<field name="res_model">poweremail.mailbox</field>
<field name="src_model">crm.case</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('id', 'in', conversation_mails)]</field>
</record>
<record id="value_action_sc_link_case_emails" model="ir.values">
<field name="object" eval="1"/>
<field name="name">Conversation Emails</field>
<field name="key2">client_action_relate</field>
<field name="key">action</field>
<field name="model">crm.case</field>
<field name="value" eval="'ir.actions.act_window,'+str(ref('action_sc_link_case_emails'))" />
</record>
</data>
</openerp>