5
<menuitem id="service_dashboard_menu" name="Service Profile" parent="board.dashboard_menu"/>
7
<!-- Weekly Dashboad View -->
9
<!-- Sales Forecast Lines view -->
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"/>
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"/>
37
<field name="amount"/>
39
<group col="2" colspan="2">
40
<separator string="Results" colspan="2"/>
41
<field name="computed_amount"/>
42
<field name="final_evolution"/>
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'),]}"/>
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')]}"/>
63
<field name="note" colspan="4" nolabel="1"/>
65
<page string="Feedback">
66
<field name="feedback" colspan="4" nolabel="1"/>
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>
83
<!-- Dashboard View -->
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">
94
<action colspan="4" name="%(action_view_forecast)d" string="Draft Sales Forecast Lines"/>
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"/>
111
action="action_service_weekly_board"
113
id="menu_weekly_board"
114
parent="service_dashboard_menu"
117
<!-- Daily Dashboad -->
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">
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"/>
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"/>
146
action="action_service_daily_board"
148
id="menu_daily_board"
149
parent="service_dashboard_menu"
b'\\ No newline at end of file'