[FIX] hr_payroll_attendance: tests and migration fixes

This commit is contained in:
Jared Kipe
2020-11-27 16:30:59 -08:00
parent 9c22f845fe
commit 2d735743da
4 changed files with 10 additions and 4 deletions

View File

@@ -13,4 +13,4 @@ class HrContract(models.Model):
for contract in self:
if contract.paid_hourly_attendance:
# only allow switch, not automatic switch 'back'
self.wage_type = 'hourly'
contract.wage_type = 'hourly'