添加功能
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
<xpath expr="//page[@name='other']" position="attributes">
|
||||
<attribute name="invisible">1</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='structure_type_id']" position="attributes">
|
||||
<attribute name="string">职级</attribute>
|
||||
<xpath expr="//field[@name='job_id']" position="attributes">
|
||||
<attribute name="domain">[('yuthon_company', '=', yuthon_company)]</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='department_id']" position="before">
|
||||
<field name="yuthon_company"/>
|
||||
|
||||
@@ -396,7 +396,7 @@ class HrAttendanceMonthDetail(models.Model):
|
||||
def button_all_put(self):
|
||||
detail_ids = self.env["hr.attendance.month.detail"].browse(self._context.get('active_ids', self._context.get('active_id')))
|
||||
for detail in detail_ids:
|
||||
menu_id = self.env['ir.ui.menu'].search([('name', '=', '我的确认'), ('parent_id', '!=', False)])
|
||||
menu_id = self.env['ir.ui.menu'].search([('name', '=', '考勤确认'), ('parent_id', '!=', False)])
|
||||
str = 'https://oa.thtzjt.com/web#id={}&cids=1&menu_id={}&action={}&model=hr.attendance.month.detail&view_type=form'.format(
|
||||
self.id, menu_id.id, menu_id.action.id)
|
||||
we_id = self.env['hr.employee'].search([('id', '=', detail.employee_id)]).wecom_userid
|
||||
|
||||
@@ -13,7 +13,7 @@ class HrJob(models.Model):
|
||||
]
|
||||
|
||||
number = fields.Char(string="序号")
|
||||
yuthon_company = fields.Selection([('thtz', '集团本部'), ('thwg', '天河物管'), ('thlc', '天河粮储'), ('thtjbb', '集团本部')], string="所属公司")
|
||||
yuthon_company = fields.Selection([('thtz', '集团本部'), ('thwg', '天河物管'), ('thlc', '天河粮储')], string="所属公司")
|
||||
job_type_id = fields.Many2one('hr.job.type', string="岗位类别")
|
||||
start_date = fields.Date(string="生效日期", default=lambda self: fields.Date.today())
|
||||
end_date = fields.Date(string="失效日期", default=fields.Date.from_string('2099-01-01'))
|
||||
|
||||
Reference in New Issue
Block a user