diff options
| author | qdp-odoo <qdp@odoo.com> | 2016-12-30 17:20:36 +0100 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2016-12-30 17:21:25 +0100 |
| commit | 4f29b77e3d1677ffc88336cc99fb7f09d49d7dd1 (patch) | |
| tree | 0642a57228cc2e0e3ab04d5afbfb5adf882b689c /addons/project_issue/models/project_issue.py | |
| parent | 33a413eb2944db4a35d035f42161159ae53dd830 (diff) | |
[MERGE] foward port of 10.0 up to revision 84a650e33aadb29661121410813e3de37a5ad3e9
Diffstat (limited to 'addons/project_issue/models/project_issue.py')
| -rw-r--r-- | addons/project_issue/models/project_issue.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/project_issue/models/project_issue.py b/addons/project_issue/models/project_issue.py index 23855487f93..d4f5e94209f 100644 --- a/addons/project_issue/models/project_issue.py +++ b/addons/project_issue/models/project_issue.py @@ -105,7 +105,7 @@ class ProjectIssue(models.Model): def _compute_inactivity_days(self): current_datetime = fields.Datetime.from_string(fields.Datetime.now()) for issue in self: - dt_create_date = fields.Datetime.from_string(issue.create_date) + dt_create_date = fields.Datetime.from_string(issue.create_date) or current_datetime issue.days_since_creation = (current_datetime - dt_create_date).days if issue.date_action_last: |
