Version: Odoo 8
Problem: I get an Access Error when Portal Users try to view an issue.
Hint: It happens only if 'invoice working time on issues' is enabled.
Steps to reproduce the problem:
Provide Portal Access to one of the customers
Create a new Project and a Project Issue related to this customer and add this customer as a follower to the project and the issue
Go to Settings --> Configuration --> Project and enable the option 'invoice working time on issues' under 'Helpdesk & Support '
Login to the portal using the account of the aforementioned customer and try to view the issue
Notice the error:
AccessError
Sorry, you are not allowed to access this document. Only users with the following access level are currently allowed to do that:
- Human Resources/Officer
- Human Resources/Employee
- Human Resources/Employee
- Human Resources/Employee
- Project/User
- Project/User
(Document model: hr.analytic.timesheet)
Go to Settings --> Configuration --> Project and disable the option 'invoice working time on issues' under 'Helpdesk & Support '
Login to the portal using the account of the aforementioned customer and try to view the issue. This time there is no error!
I submitted a bug report here:
https://github.com/odoo/odoo/issues/6800
but is there any immediate solution I can apply to solve this?
I tried modifying the view in order to hide the timesheet related fields from the portal users using the groups attribute. Just for testing I tried modifying the file https://github.com/odoo/odoo/blob/8.0/addons/project_issue_sheet/project_issue_sheet_view.xml but with no luck. Is there any chance I can prevent the error by hiding the related fields using the groups attribute ?