Skip to content

Commit da3fe42

Browse files
committed
Date start/stop empty bug fixed
1 parent 3fe107f commit da3fe42

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

project_scrum/project_scrum.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,11 @@ def test_task(self, cr, uid, sprint, pool):
8585

8686
@api.onchange('date_start')
8787
def onchange_date_start(self):
88-
if self.project_id:
89-
self.date_stop = fields.Date.from_string(self.date_start) + timedelta(days=self.project_id.default_sprintduration)
88+
if self.date_start:
89+
if self.project_id:
90+
self.date_stop = fields.Date.from_string(self.date_start) + timedelta(days=self.project_id.default_sprintduration)
91+
else:
92+
pass
9093

9194
class project_user_stories(models.Model):
9295
_name = 'project.scrum.us'

0 commit comments

Comments
 (0)