improve
authorFabien Pinckaers <fp@tinyerp.com>
Mon, 27 Oct 2008 12:26:28 +0000 (13:26 +0100)
committerFabien Pinckaers <fp@tinyerp.com>
Mon, 27 Oct 2008 12:26:28 +0000 (13:26 +0100)
bzr revid: fp@tinyerp.com-20081027122628-wv6n532k9qmbyaht

addons/hr_timesheet_sheet/hr_timesheet_sheet_demo.xml
addons/project/project.py

index c687b17..c0e0d1d 100644 (file)
@@ -9,10 +9,6 @@
             <field eval="time.strftime('%Y-%m-%d', time.localtime(time.mktime(time.localtime()[0:2] + (0,)*7)-1))" name="date_to"/>
         </record>
         
-        <record id="hr_timesheet.analytic_timesheet10" model="hr.analytic.timesheet">
-            <field name="sheet_id" ref="sheet0"/>
-        </record>
-        
         <record id="sheet1" model="hr_timesheet_sheet.sheet">
             <field name="name">Sheet 1</field>
             <field name="user_id" ref="base.user_root"/>
         <record id="hr.attendance20" model="hr.attendance">
             <field name="sheet_id" ref="sheet1"/>
         </record> -->
-        
-        <record id="hr_timesheet.analytic_timesheet1" model="hr.analytic.timesheet">
-            <field name="sheet_id" ref="sheet1"/>
-        </record>
-        <record id="hr_timesheet.analytic_timesheet2" model="hr.analytic.timesheet">
-            <field name="sheet_id" ref="sheet1"/>
-        </record>
-        <record id="hr_timesheet.analytic_timesheet3" model="hr.analytic.timesheet">
-            <field name="sheet_id" ref="sheet1"/>
-        </record>
-        <record id="hr_timesheet.analytic_timesheet4" model="hr.analytic.timesheet">
-            <field name="sheet_id" ref="sheet1"/>
-        </record>
-        <record id="hr_timesheet.analytic_timesheet5" model="hr.analytic.timesheet">
-            <field name="sheet_id" ref="sheet1"/>
-        </record>
-        <record id="hr_timesheet.analytic_timesheet6" model="hr.analytic.timesheet">
-            <field name="sheet_id" ref="sheet1"/>
-        </record>
-        <record id="hr_timesheet.analytic_timesheet7" model="hr.analytic.timesheet">
-            <field name="sheet_id" ref="sheet1"/>
-        </record>
-        <record id="hr_timesheet.analytic_timesheet8" model="hr.analytic.timesheet">
-            <field name="sheet_id" ref="sheet1"/>
-        </record>
-        <record id="hr_timesheet.analytic_timesheet9" model="hr.analytic.timesheet">
-            <field name="sheet_id" ref="sheet1"/>
-        </record>
+
     </data>
 </openerp>
index f7b460b..33843b7 100644 (file)
@@ -131,7 +131,7 @@ class project(osv.osv):
         'warn_header': fields.text('Mail header'),
         'warn_footer': fields.text('Mail footer'),
         'notes': fields.text('Notes'),
-        'timesheet_id': fields.many2one('hr.timesheet.group', 'Working Time'),
+        'timesheet_id': fields.many2one('hr.timesheet.group', 'Working Time', help="Timetable working hours to adjust the gantt diagram report"),
         'state': fields.selection([('template', 'Template'), ('open', 'Open'), ('pending', 'Pending'), ('cancelled', 'Cancelled'), ('done', 'Done')], 'State', required=True, readonly=True),
      }