openerp-dev-web team mailing list archive
-
openerp-dev-web team
-
Mailing list archive
-
Message #05302
[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-755659-ara into lp:openobject-addons
Ashvin Rathod (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-755659-ara into lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #755659 in OpenERP Addons: "an employee shouldn't be able to see all timesheet line"
https://bugs.launchpad.net/openobject-addons/+bug/755659
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-755659-ara/+merge/57113
Hello,
Fix: an employee shouldn't be able to see all timesheet line
Thanks,
Ashvin Rathod
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-755659-ara/+merge/57113
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-755659-ara.
=== modified file 'hr_timesheet/__openerp__.py'
--- hr_timesheet/__openerp__.py 2011-03-18 14:06:18 +0000
+++ hr_timesheet/__openerp__.py 2011-04-11 07:07:27 +0000
@@ -44,6 +44,7 @@
'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',
=== added file 'hr_timesheet/security/hr_timesheet_security.xml'
--- hr_timesheet/security/hr_timesheet_security.xml 1970-01-01 00:00:00 +0000
+++ hr_timesheet/security/hr_timesheet_security.xml 2011-04-11 07:07:27 +0000
@@ -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>
\ No newline at end of file
=== modified file 'hr_timesheet/security/ir.model.access.csv'
--- hr_timesheet/security/ir.model.access.csv 2011-01-14 00:11:01 +0000
+++ hr_timesheet/security/ir.model.access.csv 2011-04-11 07:07:27 +0000
@@ -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
\ No newline at end of file
Follow ups