添加功能
This commit is contained in:
@@ -14,8 +14,10 @@ class InheritHrPayslipLine(models.Model):
|
||||
@api.onchange('total')
|
||||
def _onchange_total(self):
|
||||
for rec in self:
|
||||
if rec.total:
|
||||
if rec.total != 0:
|
||||
if rec.total != rec.amount:
|
||||
rec.is_amount = True
|
||||
else:
|
||||
rec.is_amount = False
|
||||
rec.is_amount = False
|
||||
else:
|
||||
rec.is_amount = False
|
||||
Reference in New Issue
Block a user