access_rights
[odoo/odoo.git] / addons / board_account / board_account_view.xml
index b05b9b2..2efcd31 100644 (file)
-<?xml version="1.0"?>
-<terp>
-       <data>
-
-               <record model="board.note.type" id="note_account_type">
-                       <field name="name">Accountants</field>
-               </record>
-
-               <record model="ir.ui.view" id="hr_timesheet_sheet_tree">
-                       <field name="name">hr.timesheet.sheet.tree.simplified.board</field>
-                       <field name="model">hr_timesheet_sheet.sheet</field>
-                       <field name="type">tree</field>
-                       <field name="arch" type="xml">
-                               <tree string="Timesheets">
-                                       <field name="date_from" />
-                                       <field name="user_id"/>
-                                       <field name="name" />
-                                       <field name="total_attendance"/>
-                                       <field name="total_timesheet"/>
-                                       <field name="state"/>
-                               </tree>
-                       </field>
-               </record>
-
-               <record model="ir.actions.act_window" id="action_account_analytic_line_to_invoice">
-                       <field name="res_model">report.account.analytic.line.to.invoice</field>
-                       <field name="view_type">form</field>
-                       <field name="view_mode">graph,tree</field>
-               </record>
-
-               <record model="ir.actions.act_window" id="action_aged_receivable">
-                       <field name="name">Receivable Accounts</field>
-                       <field name="res_model">report.account.receivable</field>
-                       <field name="view_type">form</field>
-                       <field name="view_mode">graph,tree</field>
-                       <field name="domain">[('type','=','receivable')]</field>
-               </record>
-               <record model="ir.actions.act_window" id="action_aged_income">
-                       <field name="name">Income Accounts</field>
-                       <field name="res_model">report.account.receivable</field>
-                       <field name="view_type">form</field>
-                       <field name="view_mode">graph,tree</field>
-                       <field name="domain">[('type','=','income')]</field>
-               </record>
-
-
-               <act_window name="Accounts to invoice"
-                       domain="[('state','&lt;&gt;','close'),('partner_id','&lt;&gt;',False)]"
-                       res_model="account.analytic.account"
-                       src_model="res.users"
-                       view_type="form"
-                       view_mode="tree,form"
-                       id="act_my_account"/>
-
-               <record model="ir.actions.act_window" id="act_hr_timesheet_sheet">
-                       <field name="name">Timesheets</field>
-                       <field name="res_model">hr_timesheet_sheet.sheet</field>
-                       <field name="domain">[('state','&lt;&gt;','done'),('date_to','&lt;',time.strftime('%Y-%m-%d'))]</field>
-                       <field name="view_type">form</field>
-                       <field name="view_id" ref="hr_timesheet_sheet_tree"/>
-               </record>
-
-
-
-               <record model="ir.ui.view" id="board_account_form">
-                       <field name="name">board.account.form</field>
-                       <field name="model">board.board</field>
-                       <field name="type">form</field>
-                       <field name="arch" type="xml">
-                               <form string="Account Board">
-                                       <hpaned>
-
-                                               <child1>
-
-                                                       <action
-                                                               string="Analytic accounts to close"
-                                                               name="%(report_analytic.action_analytic_account_tree)d"
-                                                               colspan="4"
-                                                               height="160"
-                                                               width="510"/>
-
-                                                       <action
-                                                               string="Accounts to invoice"
-                                                               name="%(act_my_account)d"
-                                                               colspan="4"
-                                                               height="160"
-                                                               width="510"/>
-
-                                                       <!--
-                                                       <action
-                                                               string="Uninvoiced quotations"
-                                                               name="%(sale.action_order_tree3)d"
-                                                               height="160"
-                                                               colspan="4"/>
-                                                       -->
-
-                                                       <action
-                                                               string="Unvalidated timesheets"
-                                                               name="%(act_hr_timesheet_sheet)s"
-                                                               colspan="4"
-                                                               height="160"/>
-
-                                                       <action
-                                                               string="Draft invoices"
-                                                               name="%(account.action_invoice_tree5)d"
-                                                               colspan="4"
-                                                               height="160"/>
-                                               </child1>
-
-                                               <child2>
-                                                       <button
-                                                               string="Menu"
-                                                               name="%(base.action_menu_admin)d"
-                                                               icon="gtk-ok"
-                                                               type="action"
-                                                               colspan="4"/>
-                                                               
-                                                       <button
-                                                               string="My indicators"
-                                                               name="%(account_report.action_account_report_tree_view_indicator)d"
-                                                               icon="terp-purchase"
-                                                               type="action"
-                                                               colspan="4"/>
-
-                                                       <action
-                                                               string="Costs to invoice"
-                                                               name="%(action_account_analytic_line_to_invoice)d"
-                                                               height="220"
-                                                               colspan="4"/>
-
-                                                       <action
-                                                               string="Aged receivables"
-                                                               name="%(action_aged_receivable)d"
-                                                               height="220"
-                                                               colspan="4"/>
-
-                                                       <action
-                                                               string="Aged income"
-                                                               name="%(action_aged_income)d"
-                                                               height="220"
-                                                               colspan="4"/>
-
-                                               </child2>
-                                       </hpaned>
-                               </form>
-                       </field>
-               </record>
-
-               <record model="ir.actions.act_window" id="open_board_account">
-                       <field name="name">Dashboard accountant</field>
-                       <field name="res_model">board.board</field>
-                       <field name="view_type">form</field>
-                       <field name="view_mode">form</field>
-                       <field name="usage">menu</field>
-                       <field name="view_id" ref="board_account_form"/>
-               </record>
-
-               <menuitem
-                       name="Dashboards/Accountant"
-                       action="open_board_account"
-                       sequence="1"
-                       id="menu_board_account"/>
-       </data>
-</terp>
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data>
+        
+        <record id="note_account_type" model="board.note.type">
+            <field name="name">Accountants</field>
+        </record>
+        
+        <record id="action_account_analytic_line_to_invoice" model="ir.actions.act_window">
+            <field name="name">Costs to invoice</field>
+            <field name="res_model">report.account.analytic.line.to.invoice</field>
+            <field name="view_type">form</field>
+            <field name="view_mode">graph,tree</field>
+        </record>
+        
+        <record id="action_aged_receivable" model="ir.actions.act_window">
+            <field name="name">Receivable Accounts</field>
+            <field name="res_model">report.account.receivable</field>
+            <field name="view_type">form</field>
+            <field name="view_mode">graph,tree</field>
+            <field name="domain">[('type','=','receivable')]</field>
+        </record>
+        <record id="action_aged_income" model="ir.actions.act_window">
+            <field name="name">Income Accounts</field>
+            <field name="res_model">report.account.receivable</field>
+            <field name="view_type">form</field>
+            <field name="view_mode">graph,tree</field>
+            <field name="domain">[('type','=','income')]</field>
+        </record>
+        
+        
+        <act_window domain="[('state','&lt;&gt;','close'),('partner_id','&lt;&gt;',False),('to_invoice', '&lt;&gt;', False)]" id="act_my_account" name="Accounts to invoice" res_model="account.analytic.account" src_model="res.users" view_mode="tree,form" view_type="form"/>
+        
+        <record id="board_account_form" model="ir.ui.view">
+            <field name="name">board.account.form</field>
+            <field name="model">board.board</field>
+            <field name="type">form</field>
+            <field name="arch" type="xml">
+                <form string="Account Board">
+                    <hpaned>
+                        
+                        <child1>
+                            
+                            <action colspan="4" height="160" name="%(report_analytic.action_analytic_account_tree)d" string="Analytic accounts to close" width="510"/>
+                            
+                            <action colspan="4" height="160" name="%(act_my_account)d" string="Accounts to invoice" width="510"/>
+                            
+                            <action colspan="4" height="160" name="%(account.action_invoice_tree5)d" string="Draft invoices"/>
+                        </child1>
+                        
+                        <child2>
+                            <button colspan="4" icon="terp-purchase" name="%(account_report.action_account_report_tree_view_indicator)d" string="My indicators" type="action"/>
+                            
+                            <action colspan="4" height="220" name="%(action_account_analytic_line_to_invoice)d" string="Costs to invoice"/>
+                            
+                            <action colspan="4" height="220" name="%(action_aged_receivable)d" string="Aged receivables"/>
+                            
+                            <action colspan="4" height="220" name="%(action_aged_income)d" string="Aged income"/>
+                            
+                        </child2>
+                    </hpaned>
+                </form>
+            </field>
+        </record>
+        
+        <record id="open_board_account" model="ir.actions.act_window">
+            <field name="name">Accounting Dashboard</field>
+            <field name="res_model">board.board</field>
+            <field name="view_type">form</field>
+            <field name="view_mode">form</field>
+            <field name="usage">menu</field>
+            <field name="view_id" ref="board_account_form"/>
+        </record>
+        
+        <menuitem id="next_id_68" name="Accounting" parent="board.dashboard_menu"
+            groups="account.group_account_manager"/>
+        <menuitem action="open_board_account" icon="terp-graph" id="menu_board_account" parent="next_id_68" sequence="1"/>
+    </data>
+</openerp>