[IMP] website_hr: Adapt module with new hr.employee.public model

This commit is contained in:
RomainLibert
2019-05-31 10:21:21 +02:00
committed by Yannick Tivisse
parent 7158b5e603
commit 0fd3a64094
+7
View File
@@ -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')