[REM] project,hr_timesheet: remove task report list view

In a previous task, the task reporting list view was removed from
the interface, but the view is still present in the code.

Since this view is no longer used, this commit removes it.

closes odoo/odoo#118328

Upgrade: https://github.com/odoo/upgrade/pull/4538
Related: odoo/upgrade#4538
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
Vincent Larcin
2023-04-13 05:07:28 +02:00
parent 38acd9f7d4
commit 4e3f4f2dbc
3 changed files with 0 additions and 42 deletions
@@ -29,20 +29,5 @@
</xpath>
</field>
</record>
<record id="report_project_task_user_view_tree" model="ir.ui.view">
<field name="name">report.project.task.user.view.tree.inherit.hr.timesheet</field>
<field name="model">report.project.task.user</field>
<field name="inherit_id" ref="project.report_project_task_user_view_tree"/>
<field name="arch" type="xml">
<field name="user_ids" position="after">
<field name="effective_hours" optional="hide" widget="float_time"/>
<field name="progress" optional="hide" widget="progressbar"/>
<field name="remaining_hours" optional="hide"/>
<field name="total_hours_spent" optional="hide"/>
<field name="planned_hours" optional="hide"/>
</field>
</field>
</record>
</data>
</odoo>
-9
View File
@@ -53,8 +53,6 @@ class ReportProjectTaskUser(models.Model):
column1='project_task_id', column2='project_tags_id',
string='Tags', readonly=True)
parent_id = fields.Many2one('project.task', string='Parent Task', readonly=True)
# We are explicitly not using a related field in order to prevent the recomputing caused by the depends as the model is a report.
rating_last_text = fields.Selection(RATING_TEXT, string="Rating Last Text", compute="_compute_rating_last_text", search="_search_rating_last_text")
personal_stage_type_ids = fields.Many2many('project.task.type', relation='project_task_user_rel',
column1='task_id', column2='stage_id',
string="Personal Stage", readonly=True)
@@ -65,13 +63,6 @@ class ReportProjectTaskUser(models.Model):
domain="[('allow_task_dependencies', '=', True), ('id', '!=', id)]")
description = fields.Text(readonly=True)
def _compute_rating_last_text(self):
for task_analysis in self:
task_analysis.rating_last_text = task_analysis.task_id.rating_last_text
def _search_rating_last_text(self, operator, value):
return [('task_id.rating_last_text', operator, value)]
def _select(self):
return """
(select 1) AS nbr,
@@ -23,24 +23,6 @@
</field>
</record>
<record id="report_project_task_user_view_tree" model="ir.ui.view">
<field name="name">report.project.task.user.view.tree</field>
<field name="model">report.project.task.user</field>
<field name="arch" type="xml">
<tree string="Tasks Analysis" create="false" editable="top" delete="false" edit="false">
<field name="name"/>
<field name="partner_id" optional="hide"/>
<field name="project_id" options="{'no_open': True}" optional="show"/>
<field name="user_ids" optional="show" widget="many2many_avatar_user"/>
<field name="stage_id" optional="show"/>
<field name="company_id" optional="show" groups="base.group_multi_company"/>
<field name="date_deadline" optional="hide"/>
<field name="tag_ids" optional="hide"/>
<field name="rating_last_text" optional="hide" groups="project.group_project_rating"/>
</tree>
</field>
</record>
<record id="view_task_project_user_search" model="ir.ui.view">
<field name="name">report.project.task.user.search</field>
<field name="model">report.project.task.user</field>