mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39:18 +00:00
fix(task): calculate end date if not available
This commit is contained in:
@@ -98,7 +98,7 @@ class Task(NestedSet):
|
|||||||
self.validate_parent_project_dates()
|
self.validate_parent_project_dates()
|
||||||
|
|
||||||
def set_default_end_date_if_missing(self):
|
def set_default_end_date_if_missing(self):
|
||||||
if self.exp_start_date and self.expected_time:
|
if self.exp_start_date and self.expected_time and not self.exp_end_date:
|
||||||
self.exp_end_date = add_to_date(self.exp_start_date, hours=self.expected_time)
|
self.exp_end_date = add_to_date(self.exp_start_date, hours=self.expected_time)
|
||||||
|
|
||||||
def validate_parent_expected_end_date(self):
|
def validate_parent_expected_end_date(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user