主题
This commit is contained in:
@@ -19,7 +19,7 @@ class HrAttendance(models.Model):
|
||||
out_card_location = fields.Char(string="外出打卡地点")
|
||||
work_hours = fields.Float(string="工作时长")
|
||||
company_id = fields.Many2one('res.company', string='公司', index=True, default=lambda self: self.env.company)
|
||||
department_id = fields.Many2one('hr.department', string="部门")
|
||||
department_id = fields.Many2one('hr.department', string="部门", domain="[('company_id', 'in', allowed_company_ids)]")
|
||||
|
||||
def send_wecom_attendance(self):
|
||||
pass
|
||||
@@ -12,6 +12,7 @@
|
||||
</header>
|
||||
<field name="employee_id" widget="many2one_avatar_user"/>
|
||||
<field name="company_id" optional="show"/>
|
||||
<field name="department_id" optional="show"/>
|
||||
<field name="is_clock_card" optional="show"/>
|
||||
<field name="is_no_card" optional="show"/>
|
||||
<field name="is_early_card" optional="show"/>
|
||||
|
||||
Reference in New Issue
Block a user