diff options
| author | Dhaval Suthar <dut@odoo.com> | 2017-05-10 14:37:51 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2017-05-10 15:07:08 +0200 |
| commit | dcccb667bb2b7af90a455604aaa7dfee68d341ed (patch) | |
| tree | 0b3e8b04d22c25892d91e597d345c4736ea6c04b /addons/project_issue/models | |
| parent | c0b2d51d009d44982b19a82f1557326617676cd5 (diff) | |
[REF] project_issue: replace report by pivot / graph views
hr.recruitment.report is not necessary anymore as it can be replaced by
classic pivot and graph views on hr.applicant model.
Applicant has been slighty modified to ease reporting
* adding group_operator average on both days to computation;
* adding group_operator average on working hours computation;
Diffstat (limited to 'addons/project_issue/models')
| -rw-r--r-- | addons/project_issue/models/project_issue.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/project_issue/models/project_issue.py b/addons/project_issue/models/project_issue.py index 5513e4393ee..e16ed5376dc 100644 --- a/addons/project_issue/models/project_issue.py +++ b/addons/project_issue/models/project_issue.py @@ -55,12 +55,12 @@ class ProjectIssue(models.Model): duration = fields.Float('Duration') task_id = fields.Many2one('project.task', string='Task', domain="[('project_id','=',project_id)]", help="You can link this issue to an existing task or directly create a new one from here") - day_open = fields.Float(compute='_compute_day', string='Days to Assign', store=True) - day_close = fields.Float(compute='_compute_day', string='Days to Close', store=True) + day_open = fields.Float(compute='_compute_day', string='Days to Assign', store=True, group_operator="avg") + day_close = fields.Float(compute='_compute_day', string='Days to Close', store=True, group_operator="avg") user_id = fields.Many2one('res.users', string='Assigned to', index=True, track_visibility='onchange', default=lambda self: self.env.uid) - working_hours_open = fields.Float(compute='_compute_day', string='Working Hours to assign the Issue', store=True) - working_hours_close = fields.Float(compute='_compute_day', string='Working Hours to close the Issue', store=True) + working_hours_open = fields.Float(compute='_compute_day', string='Working Hours to assign the Issue', store=True, group_operator="avg") + working_hours_close = fields.Float(compute='_compute_day', string='Working Hours to close the Issue', store=True, group_operator="avg") inactivity_days = fields.Integer(compute='_compute_inactivity_days', string='Days since last action', help="Difference in days between last action and current date") color = fields.Integer('Color Index') |
