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:
pawan.sharma 2022-09-12 12:22:29 +05:30
commit cedffe9342
1 changed files with 5 additions and 5 deletions

View File

@ -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):