[IMP]: improved demo data in hr_timesheet
authorHardik Ansodariy (OpenERP) <han@tinyerp.com>
Wed, 13 Jul 2011 09:39:56 +0000 (15:09 +0530)
committerHardik Ansodariy (OpenERP) <han@tinyerp.com>
Wed, 13 Jul 2011 09:39:56 +0000 (15:09 +0530)
bzr revid: han@tinyerp.com-20110713093956-6pvxd61b1ctryeg5

addons/hr_timesheet/hr_timesheet_demo.xml
addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml

index 5428809..355e287 100644 (file)
             <field name="journal_id" ref="analytic_journal"/>
         </record>
 
+        <record id="hr.employee2" model="hr.employee">
+            <field name="product_id" ref="product_consultant"/>
+            <field name="journal_id" ref="analytic_journal"/>
+        </record>
+
+        <record id="hr.employee3" model="hr.employee">
+            <field name="product_id" ref="product_consultant"/>
+            <field name="journal_id" ref="analytic_journal"/>
+        </record>
+
         <record id="working_hours_requirements" model="hr.analytic.timesheet">
             <field name="name">Requirements analysis and specification</field>
             <field name="user_id" ref="base.user_root"/>
index 9dededb..770b1f0 100644 (file)
                         <field name="state"/>
                         <button name="button_confirm" states="draft" string="Submit to Manager" type="object" icon="terp-check"/>
                         <button name="action_set_to_draft" states="done" string="Set to Draft" type="object" icon="terp-stock_effects-object-colorize"/>
-                        <button name="cancel" states="confirm" string="Refuse" type="workflow" icon="gtk-cancel" groups="base.group_user"/>
+                        <button name="cancel" states="confirm" string="Refuse" type="workflow" icon="gtk-cancel" groups="base.group_user" invisible="1"/>
                         <button name="done" states="confirm" string="Approve" type="workflow" icon="terp-camera_test" groups="base.group_hr_user"/>
                     </group>
                 </form>