[FIX] hr_timesheet:an employee shouldn't be able to see all timesheet line

lp bug: https://launchpad.net/bugs/755659 fixed

bzr revid: ara@tinyerp.com-20110411070035-rmd3l2a1g3zdfomt
This commit is contained in:
ARA (OpenERP)
2011-04-11 12:30:35 +05:30
parent c05b34c409
commit 53ea40d8e9
3 changed files with 14 additions and 0 deletions
+1
View File
@@ -44,6 +44,7 @@ to set up a management by affair.
'init_xml': ['hr_timesheet_data.xml'],
'update_xml': [
'security/ir.model.access.csv',
'security/hr_timesheet_security.xml',
'hr_timesheet_view.xml',
'hr_timesheet_report.xml',
'hr_timesheet_wizard.xml',
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="True">
<record id="property_rule_timesheet_employee" model="ir.rule">
<field name="name">HR Analytic Timesheet</field>
<field model="ir.model" name="model_id" ref="model_hr_analytic_timesheet"/>
<field name="domain_force">[('user_id', '=', user.id)]</field>
</record>
</data>
</openerp>
@@ -9,3 +9,4 @@
"access_account_fiscalyear_hr_user","account.account.fiscalyear.user","account.model_account_fiscalyear","base.group_hr_user",1,1,1,1
"hr.access_account_journal_view_hruser","account.journal.view hruser","account.model_account_journal_view","base.group_hr_user",1,0,0,0
"hr.access_account_journal_column_hruser","account.journal.column hruser","account.model_account_journal_column","base.group_hr_user",1,0,0,0
"access_hr_analytic_timesheet_user","hr.analytic.timesheet.user","model_hr_analytic_timesheet","base.group_user",1,0,0,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
9 access_account_fiscalyear_hr_user account.account.fiscalyear.user account.model_account_fiscalyear base.group_hr_user 1 1 1 1
10 hr.access_account_journal_view_hruser account.journal.view hruser account.model_account_journal_view base.group_hr_user 1 0 0 0
11 hr.access_account_journal_column_hruser account.journal.column hruser account.model_account_journal_column base.group_hr_user 1 0 0 0
12 access_hr_analytic_timesheet_user hr.analytic.timesheet.user model_hr_analytic_timesheet base.group_user 1 0 0 0