~jamesj/openobject-addons/c2c_budget_fixes

« back to all changes in this revision

Viewing changes to board_service/board_service_view.xml

  • Committer: Jay (Open ERP)
  • Date: 2009-03-04 09:03:45 UTC
  • mto: This revision was merged to the branch mainline in revision 3584.
  • Revision ID: jvo@tinyerp.com-20090304090345-j1g7b1o2vffiu757
Added Dashboard for Service profile(board_service)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<openerp>
 
3
    <data>
 
4
    
 
5
    <menuitem id="service_dashboard_menu" name="Service Profile" parent="board.dashboard_menu"/>
 
6
    
 
7
    <!-- Weekly Dashboad View -->
 
8
  
 
9
        <!-- Sales Forecast Lines view -->
 
10
  
 
11
        <record model="ir.ui.view" id="view_forecast_tree">
 
12
            <field name="name">sale.forecast.line.tree</field>
 
13
            <field name="model">sale.forecast.line</field>
 
14
            <field name="type">tree</field>
 
15
            <field name="arch" type="xml">
 
16
                <tree string="Draft Sales Forcast Lines">
 
17
                    <field name="user_id"/>
 
18
                    <field name="computation_type"/>
 
19
                        <field name="amount"/>
 
20
                        <field name="computed_amount"/>
 
21
                        <field name="forecast_rate" widget="progressbar"/>
 
22
                </tree>
 
23
            </field>
 
24
    </record>
 
25
    
 
26
    <record model="ir.ui.view" id="view_forecast_form">
 
27
            <field name="name">sale.forecast.line.form</field>
 
28
            <field name="model">sale.forecast.line</field>
 
29
            <field name="type">form</field>
 
30
            <field name="arch" type="xml">
 
31
                <form string="Forecast Lines" >
 
32
                        <group col="4" colspan="2">
 
33
                        <separator string="Forecasts" colspan="4"/>
 
34
                                <field name="user_id"/>
 
35
                            <field name="computation_type"/>
 
36
                            <newline/>
 
37
                            <field name="amount"/>
 
38
                    </group>
 
39
                    <group col="2" colspan="2">
 
40
                        <separator string="Results" colspan="2"/>
 
41
                                <field name="computed_amount"/>
 
42
                            <field name="final_evolution"/>
 
43
                    </group>
 
44
                    <notebook colspan="4">
 
45
                        <page string="Forecast Details">
 
46
                                                        <group col="8" colspan="8">
 
47
                                <separator string="Filter on States" colspan="8"/>
 
48
                                        <field name="state_draft" attrs="{'readonly':[('computation_type','=','cases'),]}"/>
 
49
                                    <field name="state_confirmed" attrs="{'readonly':[('computation_type','=','cases'),]}"/>
 
50
                                    <field name="state_cancel" attrs="{'readonly':[('computation_type','=','cases'),]}"/>
 
51
                                    <field name="state_done" attrs="{'readonly':[('computation_type','=','cases'),]}"/>
 
52
                                                        </group>
 
53
                            <separator string="Filter on Cases Sections" colspan="2"/>
 
54
                            <separator string="Filter on Cases Categories" colspan="2"/>
 
55
                                <field name="crm_case_section" colspan="2" nolabel="1" attrs="{'readonly':[('computation_type','!=','cases'),]}"/>
 
56
                                <field name="crm_case_categ" colspan="2" nolabel="1" attrs="{'readonly':[('computation_type','!=','cases'),]}"/>
 
57
                            <separator string="Filter on Products" colspan="2"/>
 
58
                            <separator string="Filter on Product Categories" colspan="2"/>
 
59
                                        <field name="product_product" colspan="2" nolabel="1" attrs="{'readonly':[('computation_type','=','cases'),('computation_type','=','invoice_fix'),('computation_type','=','number_of_sale_order')]}"/>
 
60
                                    <field name="product_categ" colspan="2" nolabel="1" attrs="{'readonly':[('computation_type','=','cases'),('computation_type','=','invoice_fix'),('computation_type','=','number_of_sale_order')]}"/>
 
61
                        </page>
 
62
                        <page string="Notes">
 
63
                                <field name="note" colspan="4" nolabel="1"/>
 
64
                        </page>
 
65
                        <page string="Feedback">
 
66
                                <field name="feedback" colspan="4" nolabel="1"/>
 
67
                        </page>
 
68
                    </notebook>
 
69
                </form>
 
70
            </field>
 
71
    </record>
 
72
    
 
73
        
 
74
    <record id="action_view_forecast" model="ir.actions.act_window">
 
75
        <field name="name">Draft Sales Forecast Lines</field>
 
76
        <field name="res_model">sale.forecast.line</field>
 
77
        <field name="view_type">form</field>
 
78
        <field name="view_mode">tree,form</field>
 
79
        <field name="view_id" ref="view_forecast_tree"/>
 
80
        <field name="domain">[('forecast_id.state','=','draft')]</field>
 
81
    </record>
 
82
    
 
83
    <!-- Dashboard View -->   
 
84
        
 
85
        
 
86
    <record id="board_service_weekly_form" model="ir.ui.view">
 
87
        <field name="name">board.service.weekly.form</field>
 
88
        <field name="model">board.board</field>
 
89
        <field name="type">form</field>
 
90
        <field name="arch" type="xml">
 
91
                <form string="Weekly Dashboard">
 
92
                        <hpaned>
 
93
                                <child1>
 
94
                                <action colspan="4" name="%(action_view_forecast)d" string="Draft Sales Forecast Lines"/>
 
95
                        </child1>
 
96
                </hpaned>
 
97
                </form>
 
98
        </field>
 
99
    </record>
 
100
        
 
101
    <record id="action_service_weekly_board" model="ir.actions.act_window">
 
102
        <field name="name">Weekly Dashboard</field>
 
103
        <field name="res_model">board.board</field>
 
104
        <field name="view_type">form</field>
 
105
        <field name="view_mode">form</field>
 
106
        <field name="usage">menu</field>
 
107
        <field name="view_id" ref="board_service_weekly_form"/>
 
108
    </record>
 
109
 
 
110
    <menuitem
 
111
            action="action_service_weekly_board" 
 
112
            icon="terp-graph" 
 
113
            id="menu_weekly_board" 
 
114
            parent="service_dashboard_menu" 
 
115
            sequence="1"/>
 
116
 
 
117
    <!-- Daily Dashboad  -->
 
118
     
 
119
    <record id="board_service_daliy_form" model="ir.ui.view">
 
120
        <field name="name">board.daily.form</field>
 
121
        <field name="model">board.board</field>
 
122
        <field name="type">form</field>
 
123
        <field name="arch" type="xml">
 
124
                <form string="Daily Dashboard">
 
125
                        <hpaned>
 
126
                                <child1>
 
127
                                <action colspan="4" name="%(board_project.action_view_task_tree)d" string="My Open Tasks"/>
 
128
                                <action colspan="4" name="%(project.action_view_task5_pending)d" string="My Pending Tasks"/>
 
129
                                <action colspan="4" name="%(project_gtd.act_timebox_tasks_my_inbox)d" string="My Inbox"/>
 
130
                        </child1>
 
131
                </hpaned>
 
132
                </form>
 
133
        </field>
 
134
    </record>
 
135
        
 
136
    <record id="action_service_daily_board" model="ir.actions.act_window">
 
137
        <field name="name">Daily Dashboard</field>
 
138
        <field name="res_model">board.board</field>
 
139
        <field name="view_type">form</field>
 
140
        <field name="view_mode">form</field>
 
141
        <field name="usage">menu</field>
 
142
        <field name="view_id" ref="board_service_daliy_form"/>
 
143
    </record>
 
144
        
 
145
    <menuitem
 
146
            action="action_service_daily_board" 
 
147
            icon="terp-graph" 
 
148
            id="menu_daily_board" 
 
149
            parent="service_dashboard_menu" 
 
150
            sequence="1"/>
 
151
    
 
152
        </data>
 
153
</openerp>
 
 
b'\\ No newline at end of file'