← Back to team overview

openerp-india team mailing list archive

[Bug 1116129] Re: Access error on payslip

 

Hello Amit Bhavsar ,

In comment #5 & 6 mention that there is still need to fix following problem of creation payslip.
But as per my R&D it is not a bug it's a feature of openERP.
There is a recordrule for payslip.
['|', ('employee_id.user_id', '=', user.id), ('employee_id.department_id.manager_id.user_id', '=', user.id)]

@ Mihalanche:

At the time of creation employee payslip please check following points:
1) login user is also employee related user
or
2) login user is department manager of employee's department

For now I set this bug as fix commited
Hope it will help you.

Thanks & Regards,
Chandni Gandhi

** Changed in: openobject-addons
       Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1116129

Title:
  Access error on payslip

Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  openerp - 5 February 2013 release

  When a human resources -> manager try to create a payslip to a
  employee who has attached a contract and an Working Schedule attached
  to that contract he gets this error.

  I don't think it is necessary that a human resources manager to have
  access to admin settings.

  Access Denied

  Sorry, you are not allowed to access this document. Only users with the following access level are currently allowed to do that:
  - Administration/Settings

  (Document model: resource.calendar.attendance)

  
  Second bug:

  Let's say I give access to admin->settings to the human resources
  manager

  After that I get another error when the human resources manager  try
  to save the payslip.

  
  Access Denied

  The requested operation cannot be completed due to security
  restrictions. Please contact your system administrator.

  (Document type: Pay Slip, Operation: create)

  PS: Actually only admin with full user right can create a payslip in
  v7

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1116129/+subscriptions


References