[FIX] project_issue_sheet: timesheet_ids visible only for employees, because currentl...
authorThibault Delavallée <tde@openerp.com>
Fri, 24 May 2013 13:37:48 +0000 (15:37 +0200)
committerThibault Delavallée <tde@openerp.com>
Fri, 24 May 2013 13:37:48 +0000 (15:37 +0200)
bzr revid: tde@openerp.com-20130524133748-mon01rez59wex8v7

addons/project_issue_sheet/project_issue_sheet_view.xml

index fb245a0..4911cac 100644 (file)
@@ -19,7 +19,8 @@
                 </field>
                 <xpath expr="//notebook/page[@string='Extra Info']" position="before">
                     <page string="Worklogs">
-                        <field name="timesheet_ids" colspan="4" nolabel="1" context="{'default_user_id' : user_id, 'default_account_id' : analytic_account_id}">
+                        <field name="timesheet_ids" colspan="4" nolabel="1" context="{'default_user_id' : user_id, 'default_account_id' : analytic_account_id}"
+                                groups="base.group_user">
                             <tree editable="top" string="Timesheets">
                                 <field name="name"/>
                                 <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)" widget="float_time"/>