1
This commit is contained in:
@@ -449,10 +449,10 @@ class YuthonHrEmployee(models.Model):
|
||||
else:
|
||||
record.retire_years = 0
|
||||
|
||||
@api.depends('normal_overtime_hours', 'weekend_overtime_hours', 'holiday_overtime_hours')
|
||||
@api.depends('normal_overtime_hours', 'weekend_overtime_hours')
|
||||
def _compute_all_overtime_hours(self):
|
||||
for record in self:
|
||||
record.all_overtime_hours = record.normal_overtime_hours + record.weekend_overtime_hours + record.holiday_overtime_hours
|
||||
record.all_overtime_hours = record.normal_overtime_hours + record.weekend_overtime_hours
|
||||
|
||||
def hr_employee_time(self):
|
||||
for record in self:
|
||||
|
||||
@@ -150,9 +150,9 @@
|
||||
</group>
|
||||
<group name="overtime" string="加班" col="2">
|
||||
<group>
|
||||
<field name="normal_overtime_hours" readonly="1"/>
|
||||
<field name="weekend_overtime_hours" readonly="1"/>
|
||||
<field name="holiday_overtime_hours" readonly="1"/>
|
||||
<field name="normal_overtime_hours" readonly="0"/>
|
||||
<field name="weekend_overtime_hours" readonly="0"/>
|
||||
<field name="holiday_overtime_hours" readonly="0"/>
|
||||
</group>
|
||||
<group>
|
||||
<button name="put_overtime_return" string="详情" type="object" class="oe_highlight"/>
|
||||
@@ -171,7 +171,7 @@
|
||||
</group>
|
||||
<group>
|
||||
<field name="holiday_hours"/>
|
||||
<field name="all_overtime_hours"/>
|
||||
<field name="all_overtime_hours" readonly="0"/>
|
||||
<field name="replacement_card_count"/>
|
||||
<field name="duty_replacement_card"/>
|
||||
<field name="meal_number"/>
|
||||
|
||||
Reference in New Issue
Block a user