From cfb71cd82d4208352a642baf0e1fa4b9d16d49ec Mon Sep 17 00:00:00 2001 From: "pawan.sharma" Date: Mon, 12 Sep 2022 12:20:42 +0530 Subject: [PATCH] remove validation for end time should be greater then start time --- timesheet_entry_block/models/timesheet.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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):