-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathcrm_view.xml
executable file
·68 lines (61 loc) · 2.75 KB
/
crm_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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="crm_hear_about_us_tree" model="ir.ui.view">
<field name="name">crm.hear.about.us.tree</field>
<field name="model">crm.hear.about.us</field>
<field name="arch" type="xml">
<tree string="Hear about us">
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="type"/>
</tree>
</field>
</record>
<record id="crm_hear_about_us_form" model="ir.ui.view">
<field name="name">crm.hear.about.us.form</field>
<field name="model">crm.hear.about.us</field>
<field name="arch" type="xml">
<form string="Hear about us">
<group>
<field name="name"/>
<field name="sequence"/>
<field name="type"/>
<field name="affiliate"/>
<field name="other"/>
</group>
</form>
</field>
</record>
<record id="crm_hear_about_us_action" model="ir.actions.act_window">
<field name="name">Hear about us</field>
<field name="res_model">crm.hear.about.us</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem action="crm_hear_about_us_action" id="menu_crm_hear_about_us"
parent="base.menu_crm_config_lead" sequence="10"/>
<record model="ir.ui.view" id="crm_lead_hear_about_us_form">
<field name="name">CRM - Leads hear about us Form</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_form_view_leads"/>
<field name="priority">30</field>
<field name="arch" type="xml">
<field name="referred" position="after">
<field name="hear_about_us_id" options='{"no_open": True, "no_create": True}'/>
</field>
</field>
</record>
<record model="ir.ui.view" id="crm_opportunity_hear_about_us_form">
<field name="name">CRM - Opportunities hear about us Form</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
<field name="priority">30</field>
<field name="arch" type="xml">
<field name="referred" position="after">
<field name="hear_about_us_id" options='{"no_open": True, "no_create": True}'/>
</field>
</field>
</record>
</data>
</openerp>