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

18 lines
552 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class User(models.Model):
_inherit = 'res.users'
l10n_in_relationship = fields.Char(related='employee_id.l10n_in_relationship', readonly=False, related_sudo=False)
@property
def SELF_READABLE_FIELDS(self):
return super().SELF_READABLE_FIELDS + ['l10n_in_relationship']
@property
def SELF_WRITEABLE_FIELDS(self):
return super().SELF_WRITEABLE_FIELDS + ['l10n_in_relationship']