[IMP] website_hr: Adapt module with new hr.employee.public model
This commit is contained in:
committed by
Yannick Tivisse
parent
7158b5e603
commit
0fd3a64094
@@ -14,3 +14,10 @@ class HrEmployee(models.Model):
|
||||
super(HrEmployee, self)._compute_website_url()
|
||||
for employee in self:
|
||||
employee.website_url = '/aboutus#team'
|
||||
|
||||
class HrEmployeePublic(models.Model):
|
||||
_name = 'hr.employee.public'
|
||||
_inherit = ['hr.employee.public', 'website.published.multi.mixin']
|
||||
|
||||
public_info = fields.Char(string='Public Info')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user