修改员工绑定用户同时修改用户的企微id

This commit is contained in:
guanhuan
2024-10-29 14:50:00 +08:00
parent 69c63f708d
commit 8dc3f2698b
3 changed files with 16 additions and 5 deletions

15
sf_hr/models/res_users.py Normal file
View File

@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
import random
from odoo import models, fields, api
from odoo.http import request
from odoo.exceptions import AccessDenied
import logging
_logger = logging.getLogger(__name__)
class ResUsers(models.Model):
_inherit = 'res.users'
we_employee_id = fields.Char(string=u'企业微信账号', related='employee_id.we_id', default="")