Merge branch 'cor_cr' into 'master'
remove validation for end time should be greater then start time See merge request prakash.jain/cor-odoo!240
This commit is contained in:
commit
cedffe9342
|
@ -86,11 +86,11 @@ class TimehseetBlock(models.Model):
|
|||
return super(TimehseetBlock, self).write(record)
|
||||
|
||||
|
||||
@api.constrains('unit_amount')
|
||||
def _check_unit_amount(self):
|
||||
for rec in self:
|
||||
if rec.unit_amount < 0.0:
|
||||
raise AccessError('End date should be greater than start date!')
|
||||
# @api.constrains('unit_amount')
|
||||
# def _check_unit_amount(self):
|
||||
# for rec in self:
|
||||
# if rec.unit_amount < 0.0:
|
||||
# raise AccessError('End date should be greater than start date!')
|
||||
|
||||
@api.constrains('end_datetime')
|
||||
def _check_end_datetime(self):
|
||||
|
|
Loading…
Reference in New Issue