Purpose of this commit to improve generic usage of project app. So, in this commit done following changes: - add 'my department' filter in project search view. - add 'my department's tasks' and 'my department's projects filter in task search view. - add quick search, filter and groupby in task analysis report search view to make task analysis report search view same as task's search view. - improve portal template of my/tasks page. - project.task form view > timesheets: display the employee avatar on mobile. - make 'Task: Rating Request' template auto_delete false. - settings: make following features disabled by default: sub-tasks, task dependencies, recurring tasks. - project.update kanban list: align the stat buttons with the kanban list cards. - add sample data to the project stages > list view. - project.task quickcreate: enable the creation of new users on the fly. - move tags quick search below project. - add title to show project full name on hover of project name in kanban view of project. - copy user_ids for task in recurrence. - improve UI visibility of planned_hours and subtask_planned_hours field in timesheet page of task form view. - improve project sharing wizard and project.collaborator tree view. - add grid,kanban,pivot and graph views to 'hours spent on sub-tasks' button's action. closes: #83482 task-2742725 Related: odoo/enterprise#23788 Related: odoo/upgrade#3480 Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
18 lines
613 B
Python
18 lines
613 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ReportProjectTaskUser(models.Model):
|
|
_inherit = "report.project.task.user"
|
|
|
|
sale_line_id = fields.Many2one('sale.order.line', string='Sales Order Item', readonly=True)
|
|
sale_order_id = fields.Many2one('sale.order', string='Sales Order', readonly=True)
|
|
|
|
def _select(self):
|
|
return super()._select() + ", t.sale_line_id as sale_line_id, t.sale_order_id"
|
|
|
|
def _group_by(self):
|
|
return super()._group_by() + ", t.sale_line_id, t.sale_order_id"
|