diff --git a/timesheet_entry_block/models/timesheet.py b/timesheet_entry_block/models/timesheet.py index 215e4e1..eb75032 100755 --- a/timesheet_entry_block/models/timesheet.py +++ b/timesheet_entry_block/models/timesheet.py @@ -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):