1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/website_hr_recruitment/models/hr_department.py
2024-12-10 09:04:09 +07:00

12 lines
373 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields
class Department(models.Model):
_inherit = 'hr.department'
# Get department name using superuser, because model is not accessible for portal users
display_name = fields.Char(compute='_compute_display_name', compute_sudo=True)