@@ -60,7 +60,8 @@ class DutyAdjustmentSchedule(models.Model):
|
||||
over_record = self.env['vacation.over.line'].search([
|
||||
('employee_id', '=', record.employee_id.id),
|
||||
('update_date', '=', record.duty_date),
|
||||
('vacation_id', '=', record.vacation_id.id)
|
||||
('vacation_id', '=', record.vacation_id.id),
|
||||
('text', '=', '值班调休'),
|
||||
], limit=1)
|
||||
if not over_record:
|
||||
self.env['vacation.over.line'].create({
|
||||
|
||||
@@ -422,7 +422,7 @@
|
||||
</page>
|
||||
<page string="育儿假">
|
||||
<field name="parenting_line_ids" context="{'default_employee_id': employee_id}">
|
||||
<tree editable="bottom" delete="false" edit="false" create="false">
|
||||
<tree editable="bottom" edit="false" create="false" delete="false">
|
||||
<field name="employee_id" column_invisible="1"/>
|
||||
<field name="vacation_id" column_invisible="1"/>
|
||||
<field name="update_date"/>
|
||||
@@ -430,6 +430,7 @@
|
||||
<field name="lines"/>
|
||||
<field name="text"/>
|
||||
<field name="is_confirm" column_invisible="1"/>
|
||||
<button name="unlink" string="删除" type="object" class="btn-primary" groups="yuthon_holiday.group_yuthon_holiday_admin"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
|
||||
Reference in New Issue
Block a user