~zaber/openobject-addons/document-ftp-ports

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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<?xml version="1.0"?>
<openerp>
<data>

    # ------------------------------------------------------ 
    # Opportunities
    # ------------------------------------------------------ 

    <record model="ir.ui.view" id="crm_case_form_view_oppor">
        <field name="name">CRM - Opportunities Form</field>
        <field name="model">crm.case</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Opportunities">
                <group colspan="4" col="7">
                    <field name="name" select="1" string="Opportunity" colspan="2"/>
                    <field name="section_id" colspan="1"/>
                    <field name="user_id" select="2" string="Responsible"/>
                        <newline/>
                        <label string="Sales Stage: " align="1.0"/>
                        <group colspan="1" col="2">
                        <field name="stage_id" select="1" nolabel="1"/>
                        <button icon="gtk-go-forward" string="" name="stage_next" type="object"/>
                        </group>
                    <field name="date" string="Next Meeting"/>
                    <field name="duration"/>
                    <button string="Schedule Meeting" icon="terp-crm" name="%(wizard_crm_meeting)d" type="action"/>
                </group>
                <notebook colspan="4">
                <page string="Description">
                    <field name="partner_id" select="1" on_change="onchange_partner_id(partner_id, email_from)" colspan="2"/>
                    <field name="partner_address_id" string="Contact" on_change="onchange_partner_address_id(partner_address_id, email_from)" colspan="1"/>
                    <field name="email_from" colspan="2"/>
                    <field name="categ_id" select="1" on_change="onchange_categ_id(categ_id)" string="Source"/>
                    <field name="priority" string="Priority"/>
                    <field name="category2_id" select="1" string="Category"/>
                    <separator colspan="4" string="Estimates"/>
                    <field name="planned_revenue"/>
                    <field name="planned_cost"/>
                    <field name="probability"/>
                    <separator colspan="4" string="Description Information"/>
                        <field name="note" nolabel="1" colspan="4"/>

                    <separator colspan="4"/>
                    <group col="8" colspan="4">
                        <field name="state" select="2"/> 
                         <button name="case_close" string="Done" states="open,draft,pending" type="object"/>
                        <button name="case_open" string="Open" states="draft,pending" type="object"/>
                        <button name="case_cancel" string="Cancel" states="draft,open,pending" type="object"/>
                        <button name="case_pending" string="Pending" states="draft,open" type="object"/>
                        <button name="case_escalate" string="Escalate" states="open,draft,pending" type="object"/>
                        <button name="case_reset" string="Reset to Draft" states="done,cancel" type="object"/>
                    </group>
                </page>

                <page string="Extra Info" groups="base.group_extended">
                    <field name="id" select="2"/>
                    <field name="active"/>
                    <field name="email_cc" colspan="4"/>
                    
                    <separator colspan="4" string="Dates"/>
                    <field name="create_date"/>
                    <field name="date_closed"/>
                    <field name="date_action_last"/>
                    <field name="date_action_next"/>
                    <separator colspan="4"/>
                    <field name="history_line" colspan="2" nolabel="1" mode="tree,form">
                        <form string="Communication history">
                            <group col="6" colspan="4">
                                <field name="date"/>
                                <field name="email"/>
                                <field name="canal_id"/>
                            </group>
                            <newline/>
                            <field name="description" colspan="4" nolabel="1"/>
                        </form>
                        <tree string="Communication history">
                            <field name="description"/>
                            <field name="email"/>
                            <field name="date"/>
                        </tree>
                    </field>
                    <group col="2" colspan="2" expand="1">
                        <field name="canal_id"/>
                        <field name="som"/>
                        <button name="add_reply" string="Add Last Mail for Replying"
                            states="open" type="object" colspan="2"/>
                        <field name="description" colspan="2" nolabel="1"/>
                        <button name="case_log_reply"
                            string="Send Partner &amp; Historize" states="open"
                            type="object"/>
                        <button name="case_log" string="Historize" states="open"
                            type="object"/>
                    </group>

                    <separator colspan="4" string="References"/>
                    <field name="ref" colspan="4"/>
                    <field name="ref2" colspan="4"/>
                </page>
                <page string="History">
                    <field name="log_ids" nolabel="1" colspan="4">
                        <form string="Actions">
                            <separator string="Action Information" colspan="4"/>
                            <field name="name" colspan="4"/>
                            <field name="date"/>
                            <field name="user_id"/>
                            <field name="som"/>
                            <field name="canal_id"/>
                        </form>
                    </field>
                </page>
                </notebook>
            </form>
        </field>
    </record>
    <record model="ir.ui.view" id="crm_case_tree_view_oppor">
        <field name="name">CRM - Opportunities Tree</field>
        <field name="model">crm.case</field>
        <field name="type">tree</field>
        <field name="arch" type="xml">
            <tree string="Opportunities Tree"  colors="red:state=='open'">
                <field name="id"/>
                <field name="name" string="Opportunities"/>
                <field name="stage_id"  string="Sales Stage"/>
                <field name="partner_id" string="Partner"/>
                <field name="planned_revenue"/>
                <field name="probability"/>
                <field name="date" string="Next Meeting"/>
                <field name="user_id"/>
                <field name="state"/>
            </tree>
        </field>
    </record>
    <record model="ir.ui.view" id="crm_case_calendar_view_oppor">
        <field name="name">CRM - Opportunities Calendar</field>
        <field name="model">crm.case</field>
        <field name="type">calendar</field>
        <field name="priority" eval="2"/>
        <field name="arch" type="xml">
            <calendar string="Opportunities" date_start="date" color="user_id" date_delay="duration">
                <field name="name"/>
                <field name="partner_id"/>
            </calendar>
        </field>
    </record>
</data>
</openerp>