添加功能

This commit is contained in:
zhouzhou
2024-12-19 19:29:30 +08:00
parent 8532c8d20d
commit 9536e7b0eb
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ class YuthonUserRole(models.Model):
personnel = fields.Text(string="在岗人员", compute='_compute_personnel')
employee_ids = fields.One2many('hr.employee', 'user_role_id')
number_people = fields.Integer(string="在岗人数", compute='_compute_number_people')
child_ids = fields.One2many('soong.user.role', 'parent_id', string='子集角色', index=True)
child_ids = fields.One2many('soong.user.role', 'parent_id', string='下级角色', index=True)
yuthon_company = fields.Selection([('thtz', '天河投资集团'), ('thwg', '天河物管'),
('thlc', '天河粮储'), ('thtjbb', '天河投资本部')], string="所属公司", compute='compute_company')
pinyin_name = fields.Char(string="拼音名称", compute='_compute_pinyin', index=True, store=True)
+1 -1
View File
@@ -131,7 +131,7 @@ class HolidaysRequestBatch(models.Model):
details = fields.Text(string="假期流程说明", compute='_compute_details')
days = fields.Float(string='天数')
hours = fields.Float(string='小时')
text = fields.Html(string='申请事由')
text = fields.Text(string='申请事由')
is_day = fields.Boolean(string='按天请假')
is_hour = fields.Boolean(string='按小时请假')
leave_ids = fields.One2many(string='按天请假详情', comodel_name='hr.leave', inverse_name='batch_id', domain=[('leave_type_request_unit', '=', 'day')])
+2 -2
View File
@@ -134,8 +134,8 @@
sequence="10"/>
<menuitem id="hr_set_process_menu_root_board"
name="流程"
parent="hr_employee_menu_root_board"
sequence="11"/>
parent="hr_menu_root_board"
sequence="5"/>
<menuitem id="hr_menu_regularization_approval_root_board"
name="转正申请表"
parent="hr_set_process_menu_root_board"