添加功能

This commit is contained in:
李鹏宇
2026-04-20 16:38:24 +08:00
parent 43bb03adb4
commit 240cf68086
14 changed files with 27 additions and 17 deletions
@@ -9,12 +9,7 @@ class YuthonMedicalManage(models.Model):
_description = '体检费管理'
employee_id = fields.Many2one('hr.employee', string="员工姓名")
employee_number = fields.Char(
string='序号',
related='employee_id.user_number',
store=True,
readonly=True
)
employee_number = fields.Char( string='序号', related='employee_id.user_number', store=True, readonly=True)
start_date = fields.Date(string='开始日期')
year = fields.Char(string="年份")
current_year_remaining = fields.Float(string="本年剩余", compute="_compute_current_year_remaining")