From bd426f0346d476ab528d6e65507a75e14caed7a6 Mon Sep 17 00:00:00 2001 From: "amp (OpenERP)" <> Date: Tue, 10 Aug 2010 19:15:29 +0530 Subject: [PATCH] [IMP] crm,hr_*,auction,knowledge,mrp,product,project,sale,survey : access rights improvements bzr revid: vir@tinyerp.com-20100810134529-wyqlh5d3zabd25gv --- addons/association/profile_association.xml | 2 +- addons/auction/auction_view.xml | 2 +- addons/crm/crm_view.xml | 1 + addons/crm/security/crm_security.xml | 4 ---- addons/crm/security/ir.model.access.csv | 5 +++++ addons/hr/hr_view.xml | 2 +- addons/hr/security/hr_security.xml | 4 ++++ addons/hr_attendance/hr_attendance_view.xml | 2 +- addons/hr_attendance/security/hr_security.xml | 2 +- .../hr_attendance/security/ir.model.access.csv | 12 ++++++------ .../wizard/hr_attendance_sign_in_out_view.xml | 2 +- addons/hr_timesheet/test/test_hr_timesheet.yml | 2 +- .../hr_timesheet_sheet_view.xml | 16 ++++++++-------- addons/knowledge/knowledge_view.xml | 2 +- .../knowledge/security/knowledge_security.xml | 5 +++++ addons/marketing/marketing_view.xml | 2 +- addons/mrp/board_manufacturing_view.xml | 2 +- addons/mrp/mrp_view.xml | 6 +++--- addons/mrp/report/mrp_report_view.xml | 2 +- addons/mrp/security/ir.model.access.csv | 4 ++++ addons/mrp/security/mrp_security.xml | 2 +- addons/product/product_view.xml | 5 +++-- addons/project/security/ir.model.access.csv | 2 ++ addons/project/security/project_security.xml | 4 ++++ addons/purchase/purchase_view.xml | 2 +- addons/sale/security/ir.model.access.csv | 18 ++++++++++++++---- addons/survey/survey_view.xml | 2 +- 27 files changed, 73 insertions(+), 41 deletions(-) diff --git a/addons/association/profile_association.xml b/addons/association/profile_association.xml index 630b02790b8..88a8c2940d0 100644 --- a/addons/association/profile_association.xml +++ b/addons/association/profile_association.xml @@ -63,7 +63,7 @@ - + diff --git a/addons/auction/auction_view.xml b/addons/auction/auction_view.xml index 9f1ba5b8769..20b6dede1f6 100644 --- a/addons/auction/auction_view.xml +++ b/addons/auction/auction_view.xml @@ -1,7 +1,7 @@ - + diff --git a/addons/crm/crm_view.xml b/addons/crm/crm_view.xml index ba5c8edab77..d641f012297 100644 --- a/addons/crm/crm_view.xml +++ b/addons/crm/crm_view.xml @@ -4,6 +4,7 @@ + diff --git a/addons/crm/security/crm_security.xml b/addons/crm/security/crm_security.xml index b679ef791ba..9c63e611e93 100644 --- a/addons/crm/security/crm_security.xml +++ b/addons/crm/security/crm_security.xml @@ -14,9 +14,5 @@ - - - - diff --git a/addons/crm/security/ir.model.access.csv b/addons/crm/security/ir.model.access.csv index 5f8cbe9719c..f9ffc78d50d 100644 --- a/addons/crm/security/ir.model.access.csv +++ b/addons/crm/security/ir.model.access.csv @@ -62,3 +62,8 @@ "access_base_res_partner_canal_system","base.res.partner.canal system","base.model_res_partner_canal","base.group_system",1,1,1,1 "access_res_partner_category_system","res.partner.category system","base.model_res_partner_category","base.group_system",1,1,1,1 "access_res_partner_title_system","res.partner.title system","base.model_res_partner_title","base.group_system",1,1,1,1 +"access_crm_lead_system","crm.lead.system","model_crm_lead","base.group_system",1,0,0,0 +"access_crm_meeting_system","crm.meeting.system","model_crm_meeting","base.group_system",1,0,0,0 +"access_calendar_attendee_system","calendar.attendee.system","model_calendar_attendee","base.group_system",1,0,0,0 +"access_res_partner_bank_type_crm_user","res.partner.bank.type.crm.user","base.model_res_partner_bank_type","base.group_sale_salesman",1,0,0,0 +"access_res_partner_bank_type_crm_manager","res.partner.bank.type.crm.manager","base.model_res_partner_bank_type","base.group_sale_manager",1,0,0,0 diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml index 7d8c7b62644..0b95ca073ef 100644 --- a/addons/hr/hr_view.xml +++ b/addons/hr/hr_view.xml @@ -2,7 +2,7 @@ - + diff --git a/addons/hr/security/hr_security.xml b/addons/hr/security/hr_security.xml index 4f7691f03e9..366744f22ff 100644 --- a/addons/hr/security/hr_security.xml +++ b/addons/hr/security/hr_security.xml @@ -10,5 +10,9 @@ Human Resources / User + + Human Resources / Attendances User + + diff --git a/addons/hr_attendance/hr_attendance_view.xml b/addons/hr_attendance/hr_attendance_view.xml index 2b8d1ab7a86..659d27cec9a 100644 --- a/addons/hr_attendance/hr_attendance_view.xml +++ b/addons/hr_attendance/hr_attendance_view.xml @@ -75,7 +75,7 @@ - + hr.action.reason.form diff --git a/addons/hr_attendance/security/hr_security.xml b/addons/hr_attendance/security/hr_security.xml index fd6ad2e0ccb..15c4ec2693c 100644 --- a/addons/hr_attendance/security/hr_security.xml +++ b/addons/hr_attendance/security/hr_security.xml @@ -2,7 +2,7 @@ - + Human Resources / Attendances User diff --git a/addons/hr_attendance/security/ir.model.access.csv b/addons/hr_attendance/security/ir.model.access.csv index 1fb40252872..a22d252448d 100644 --- a/addons/hr_attendance/security/ir.model.access.csv +++ b/addons/hr_attendance/security/ir.model.access.csv @@ -1,11 +1,11 @@ "id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" -"access_hr_action_reason_employee","hr action reason employee","model_hr_action_reason","group_hr_attendance",1,0,0,0 +"access_hr_action_reason_employee","hr action reason employee","model_hr_action_reason","base.group_hr_attendance",1,0,0,0 "access_hr_action_reason_employee","hr action reason employee","model_hr_action_reason","base.group_hr_manager",1,1,1,1 "access_hr_action_reason_employee_user","hr action reason employee user","model_hr_attendance","base.group_hr_user",1,1,1,1 "access_hr_action_reason_employee_manager","hr action reason employee manager","model_hr_attendance","base.group_hr_manager",1,1,1,1 -"access_hr_attendance_employee","hr attendance employee","model_hr_attendance","group_hr_attendance",1,1,1,1 -"access_hr_employee_attendance","hr employee attendance sign in out","hr.model_hr_employee","group_hr_attendance",1,1,1,1 -"access_hr_attendance_resource","hr resource attendance sign in out","resource.model_resource_resource","group_hr_attendance",1,1,1,1 -"access_hr_job_attendance","hr_job_attendance","hr.model_hr_job","group_hr_attendance",1,0,0,0 -"access_hr_department_attendance","hr.department attendance","hr.model_hr_department","group_hr_attendance",1,0,0,0 +"access_hr_attendance_employee","hr attendance employee","model_hr_attendance","base.group_hr_attendance",1,1,1,1 +"access_hr_employee_attendance","hr employee attendance sign in out","hr.model_hr_employee","base.group_hr_attendance",1,1,1,1 +"access_hr_attendance_resource","hr resource attendance sign in out","resource.model_resource_resource","base.group_hr_attendance",1,1,1,1 +"access_hr_job_attendance","hr_job_attendance","hr.model_hr_job","base.group_hr_attendance",1,0,0,0 +"access_hr_department_attendance","hr.department attendance","hr.model_hr_department","base.group_hr_attendance",1,0,0,0 "access_hr_action_reason","hr.action.reason","model_hr_action_reason","base.group_system",1,1,1,1 diff --git a/addons/hr_attendance/wizard/hr_attendance_sign_in_out_view.xml b/addons/hr_attendance/wizard/hr_attendance_sign_in_out_view.xml index 676791372d5..534d4dfb345 100644 --- a/addons/hr_attendance/wizard/hr_attendance_sign_in_out_view.xml +++ b/addons/hr_attendance/wizard/hr_attendance_sign_in_out_view.xml @@ -47,7 +47,7 @@ + parent="menu_hr_time_tracking" sequence="4" groups="base.group_hr_manager,base.group_hr_user,base.group_hr_attendance"/> hr.sign.in.out.ask.form diff --git a/addons/hr_timesheet/test/test_hr_timesheet.yml b/addons/hr_timesheet/test/test_hr_timesheet.yml index ce132a5f85a..9f561964cb2 100644 --- a/addons/hr_timesheet/test/test_hr_timesheet.yml +++ b/addons/hr_timesheet/test/test_hr_timesheet.yml @@ -21,7 +21,7 @@ context_lang: en_US groups_id: - base.group_hr_user - - hr_attendance.group_hr_attendance + - base.group_hr_attendance - base.group_user - base.group_extended - base.group_hr_manager diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml index 9b51343f6b6..f04e9253b7a 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml @@ -13,9 +13,9 @@ - + - + @@ -116,19 +116,19 @@