45c67806df7e3fbafdf7290e40192e26ad5fab41
[odoo/odoo.git] / addons / board_account / board_account_view.xml
1 <?xml version="1.0"?>
2 <terp>
3         <data>
4
5                 <record model="board.note.type" id="note_account_type">
6                         <field name="name">Accountants</field>
7                 </record>
8
9                 <record model="ir.ui.view" id="hr_timesheet_sheet_tree">
10                         <field name="name">hr.timesheet.sheet.tree.simplified.board</field>
11                         <field name="model">hr_timesheet_sheet.sheet</field>
12                         <field name="type">tree</field>
13                         <field name="arch" type="xml">
14                                 <tree string="Timesheets">
15                                         <field name="date_from" />
16                                         <field name="user_id"/>
17                                         <field name="name" />
18                                         <field name="total_attendance"/>
19                                         <field name="total_timesheet"/>
20                                         <field name="state"/>
21                                 </tree>
22                         </field>
23                 </record>
24
25                 <record model="ir.actions.act_window" id="action_account_analytic_line_to_invoice">
26                         <field name="res_model">report.account.analytic.line.to.invoice</field>
27                         <field name="view_type">form</field>
28                         <field name="view_mode">graph,tree</field>
29                 </record>
30
31                 <record model="ir.actions.act_window" id="action_aged_receivable">
32                         <field name="name">Receivable Accounts</field>
33                         <field name="res_model">report.account.receivable</field>
34                         <field name="view_type">form</field>
35                         <field name="view_mode">graph,tree</field>
36                         <field name="domain">[('type','=','receivable')]</field>
37                 </record>
38                 <record model="ir.actions.act_window" id="action_aged_income">
39                         <field name="name">Income Accounts</field>
40                         <field name="res_model">report.account.receivable</field>
41                         <field name="view_type">form</field>
42                         <field name="view_mode">graph,tree</field>
43                         <field name="domain">[('type','=','income')]</field>
44                 </record>
45
46
47                 <act_window name="Accounts to invoice"
48                         domain="[('state','&lt;&gt;','close'),('partner_id','&lt;&gt;',False)]"
49                         res_model="account.analytic.account"
50                         src_model="res.users"
51                         view_type="form"
52                         view_mode="tree,form"
53                         id="act_my_account"/>
54
55                 <record model="ir.actions.act_window" id="act_hr_timesheet_sheet">
56                         <field name="name">Timesheets</field>
57                         <field name="res_model">hr_timesheet_sheet.sheet</field>
58                         <field name="domain">[('state','&lt;&gt;','done'),('date_to','&lt;',time.strftime('%Y-%m-%d'))]</field>
59                         <field name="view_type">form</field>
60                         <field name="view_id" ref="hr_timesheet_sheet_tree"/>
61                 </record>
62
63
64
65                 <record model="ir.ui.view" id="board_account_form">
66                         <field name="name">board.account.form</field>
67                         <field name="model">board.board</field>
68                         <field name="type">form</field>
69                         <field name="arch" type="xml">
70                                 <form string="Account Board">
71                                         <hpaned>
72
73                                                 <child1>
74
75                                                         <action
76                                                                 string="Analytic accounts to close"
77                                                                 name="%(report_analytic.action_analytic_account_tree)d"
78                                                                 colspan="4"
79                                                                 height="160"
80                                                                 width="510"/>
81
82                                                         <action
83                                                                 string="Accounts to invoice"
84                                                                 name="%(act_my_account)d"
85                                                                 colspan="4"
86                                                                 height="160"
87                                                                 width="510"/>
88
89                                                         <action
90                                                                 string="Unvalidated timesheets"
91                                                                 name="%(act_hr_timesheet_sheet)s"
92                                                                 colspan="4"
93                                                                 height="160"/>
94
95                                                         <action
96                                                                 string="Draft invoices"
97                                                                 name="%(account.action_invoice_tree5)d"
98                                                                 colspan="4"
99                                                                 height="160"/>
100                                                 </child1>
101
102                                                 <child2>
103                                                         <button
104                                                                 string="My indicators"
105                                                                 name="%(account_report.action_account_report_tree_view_indicator)d"
106                                                                 icon="terp-purchase"
107                                                                 type="action"
108                                                                 colspan="4"/>
109
110                                                         <action
111                                                                 string="Costs to invoice"
112                                                                 name="%(action_account_analytic_line_to_invoice)d"
113                                                                 height="220"
114                                                                 colspan="4"/>
115
116                                                         <action
117                                                                 string="Aged receivables"
118                                                                 name="%(action_aged_receivable)d"
119                                                                 height="220"
120                                                                 colspan="4"/>
121
122                                                         <action
123                                                                 string="Aged income"
124                                                                 name="%(action_aged_income)d"
125                                                                 height="220"
126                                                                 colspan="4"/>
127
128                                                 </child2>
129                                         </hpaned>
130                                 </form>
131                         </field>
132                 </record>
133
134                 <record model="ir.actions.act_window" id="open_board_account">
135                         <field name="name">Accounting Dashboard</field>
136                         <field name="res_model">board.board</field>
137                         <field name="view_type">form</field>
138                         <field name="view_mode">form</field>
139                         <field name="usage">menu</field>
140                         <field name="view_id" ref="board_account_form"/>
141                 </record>
142
143                 <menuitem
144                         name="Dashboards/Accounting/"
145                         action="open_board_account"
146                         sequence="1"
147                         id="menu_board_account"/>
148         </data>
149 </terp>