~serpentcs/openobject-addons/trunk-webkit-reports-addons

« back to all changes in this revision

Viewing changes to hr_timesheet_invoice/wizard/hr_timesheet_analytic_profit_view.xml

  • Committer: Hemangini Patel
  • Date: 2013-10-16 10:19:06 UTC
  • Revision ID: h.patel.serpentcs@gmail.com-20131016101906-9bqrmodzzepjw5zs
[ADD] Added hr_timesheet_invoice module with webkit reports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
    <data>
 
4
 
 
5
        <record id="view_hr_timesheet_analytic_profit" model="ir.ui.view">
 
6
            <field name="name">Timesheet Profit</field>
 
7
            <field name="model">hr.timesheet.analytic.profit</field>
 
8
            <field name="arch" type="xml">
 
9
                <form string="Timesheet Profit" version="7.0">
 
10
                   <sheet>
 
11
                       <group> 
 
12
                           <label for="date_from" string="Duration" />
 
13
                           <div>
 
14
                               <field name="date_from" nolabel="1" class="oe_inline" />
 
15
                               - <field name="date_to" nolabel="1" class="oe_inline"/>
 
16
                           </div>
 
17
                       </group>
 
18
                       <group>
 
19
                           <field name="journal_ids" widget="many2many_tags"/>
 
20
                           <field name="employee_ids" widget="many2many_tags"/>
 
21
                       </group>
 
22
                   </sheet>
 
23
                   <footer>
 
24
                        <button name="print_report" string="Print" colspan="1" type="object" class="oe_highlight"/> or
 
25
                        <button special="cancel" string="Cancel" class="oe_link"/>
 
26
                   </footer>
 
27
               </form>
 
28
            </field>
 
29
        </record>
 
30
 
 
31
        <record id="action_hr_timesheet_analytic_profit" model="ir.actions.act_window">
 
32
            <field name="name">Timesheet Profit</field>
 
33
            <field name="type">ir.actions.act_window</field>
 
34
            <field name="res_model">hr.timesheet.analytic.profit</field>
 
35
            <field name="view_type">form</field>
 
36
            <field name="view_mode">form</field>
 
37
            <field name="target">new</field>
 
38
        </record>
 
39
 
 
40
           <menuitem action="action_hr_timesheet_analytic_profit"
 
41
            id="menu_hr_timesheet_analytic_profit"
 
42
            parent="hr.menu_hr_reporting_timesheet" sequence="3" icon="STOCK_PRINT"/>
 
43
 
 
44
    </data>
 
45
</openerp>