Launchpad automatic translations update.
[odoo/odoo.git] / addons / hr_timesheet_invoice / board_hr_timesheet_invoice.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <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"/>
6
7         <record id="action_account_analytic_line_to_invoice" model="ir.actions.act_window">
8             <field name="name">Costs to invoice</field>
9             <field name="res_model">report.account.analytic.line.to.invoice</field>
10             <field name="view_type">form</field>
11             <field name="view_mode">graph,tree</field>
12         </record>
13
14        <!--  <record id="board_hr_timesheet_invoice_form" model="ir.ui.view">
15             <field name="name">board.hr.timesheet.invoice</field>
16             <field name="model">board.board</field>
17              <field name="type">form</field>
18             <field name="inherit_id" ref="account.board_account_form"/>
19             <field name="arch" type="xml">
20                 <xpath expr="/form/hpaned/child1/action[@string='Draft Customer Invoices']" position="before">
21                     <action colspan="4" height="160" name="%(hr_timesheet_invoice.action_analytic_account_tree)d" string="Analytic accounts to close" width="510"/>
22                     <action colspan="4" height="160" name="%(act_my_account)d" string="Accounts to invoice" width="510"/>
23                 </xpath>
24             </field>
25         </record> -->
26
27         <!-- Need to merge in above view -->
28         <!--<record id="board_hr_timesheet_invoice_report_form1" model="ir.ui.view">
29             <field name="name">board.hr.timesheet.invoice</field>
30             <field name="model">board.board</field>
31             <field name="type">form</field>
32             <field name="inherit_id" ref="account.board_account_form"/>
33             <field name="arch" type="xml">
34                 <xpath expr="/form/hpaned/child2/action[@string='Aged income']" position="after">
35                     <action colspan="4" height="220" name="%(action_account_analytic_line_to_invoice)d" string="Costs to invoice"/>
36                 </xpath>
37             </field>
38         </record> -->
39
40         <record id="view_timesheet_uninvoiced_line_tree" model="ir.ui.view">
41             <field name="name">timesheet.uninvoiced.line.tree</field>
42             <field name="model">report.timesheet.line</field>
43             <field name="type">tree</field>
44             <field name="arch" type="xml">
45                 <tree string="Uninvoiced line with billing rate">
46                     <field name="date"/>
47                     <field name="account_id"/>
48                     <field name="user_id" />
49                     <field name="name"/>
50                     <field name="cost"/>
51                 </tree>
52             </field>
53         </record>
54
55         <record id="action_timesheet_uninvoiced_line" model="ir.actions.act_window">
56             <field name="name">Uninvoice lines with billing rate</field>
57             <field name="res_model">report.timesheet.line</field>
58             <field name="view_type">form</field>
59             <field name="view_mode">form,tree</field>
60             <field name="domain">[('invoice_id','=',False)]</field>
61             <field name="view_id" ref="view_timesheet_uninvoiced_line_tree"/>
62         </record>
63
64         <record id="board_hr_timesheet_uninvoiced_form" model="ir.ui.view">
65             <field name="name">board.hr.timesheet.uninvoiced.form</field>
66             <field name="model">board.board</field>
67             <field name="type">form</field>
68             <field name="inherit_id" ref="hr.board_hr_manager_form"/>
69             <field name="arch" type="xml">
70                 <xpath expr="/form/hpaned/child1" position="inside">
71                     <action colspan="4" height="220" name="%(action_timesheet_uninvoiced_line)d" string="Uninvoice Lines With Billing Rate" />
72                 </xpath>
73             </field>
74         </record>
75
76     </data>
77 </openerp>