From fd9bdbb6885cc411345729bdc006e3a55864b252 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Mon, 25 Jun 2012 14:30:34 +0200 Subject: [PATCH] [IMP] projecT_timesheet: at the installation, automatically imply that all members of the 'employee' group are also members of the group that allows to see the 'work task' field, on a task. bzr revid: qdp-launchpad@openerp.com-20120625123034-d0b3qnk08l39vq72 --- addons/project_timesheet/__openerp__.py | 8 +++++++- .../security/project_timesheet_security.xml | 9 +++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 addons/project_timesheet/security/project_timesheet_security.xml diff --git a/addons/project_timesheet/__openerp__.py b/addons/project_timesheet/__openerp__.py index 2dccbb2e38b..f1a82867a6f 100644 --- a/addons/project_timesheet/__openerp__.py +++ b/addons/project_timesheet/__openerp__.py @@ -36,7 +36,13 @@ the Timesheet line entries for particular date and particular user with the eff 'images': ['images/invoice_task_work.jpeg', 'images/my_timesheet.jpeg', 'images/working_hour.jpeg'], 'depends': ['project', 'hr_timesheet_sheet', 'hr_timesheet_invoice', 'account_analytic_analysis'], 'init_xml': ['project_timesheet_data.xml'], - 'update_xml': ["security/ir.model.access.csv","process/project_timesheet_process.xml", "report/task_report_view.xml", "project_timesheet_view.xml"], + 'update_xml': [ + "security/ir.model.access.csv", + "security/project_timesheet_security.xml", + "process/project_timesheet_process.xml", + "report/task_report_view.xml", + "project_timesheet_view.xml", + ], 'demo_xml': ["project_timesheet_demo.xml"], 'test': [ 'test/worktask_entry_to_timesheetline_entry.yml', diff --git a/addons/project_timesheet/security/project_timesheet_security.xml b/addons/project_timesheet/security/project_timesheet_security.xml new file mode 100644 index 00000000000..ea1f0a98b4c --- /dev/null +++ b/addons/project_timesheet/security/project_timesheet_security.xml @@ -0,0 +1,9 @@ + + + + + + + + +