Browse Source
[FIX] employee_documents_expiry: solve internal user access fields
pull/145/head
abdallamohamedcore
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
employee_documents_expiry/models/employee_documents.py
|
|
@ -93,7 +93,7 @@ class HrEmployee(models.Model): |
|
|
|
'context': {'default_employee_ref': self.id} |
|
|
|
} |
|
|
|
|
|
|
|
document_count = fields.Integer(compute='_document_count', string='# Documents') |
|
|
|
document_count = fields.Integer(compute='_document_count', string='# Documents', groups='hr.group_hr_user') |
|
|
|
|
|
|
|
|
|
|
|
class HrEmployeeAttachment(models.Model): |
|
|
|