[IMP] project: priority -> starred, search on starred tasks
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
<field name="sequence">1</field>
|
||||
<field name="name">To Do</field>
|
||||
<field name="legend_blocked">Not validated</field>
|
||||
<field name="legend_priority">Use the priority for tasks related to gold customers</field>
|
||||
<field name="legend_priority">Use the star for tasks related to gold customers</field>
|
||||
<field name="mail_template_id" ref="project.mail_template_data_project_task"/>
|
||||
</record>
|
||||
<record id="project_stage_1" model="project.task.type">
|
||||
|
||||
@@ -26,8 +26,8 @@ class ProjectTaskType(models.Model):
|
||||
project_ids = fields.Many2many('project.project', 'project_task_type_rel', 'type_id', 'project_id', string='Projects',
|
||||
default=_get_default_project_ids)
|
||||
legend_priority = fields.Char(
|
||||
string='Priority Management Explanation', translate=True,
|
||||
help='Explanation text to help users using the star and priority mechanism on stages or issues that are in this stage.')
|
||||
string='Starred Explanation', translate=True,
|
||||
help='Explanation text to help users using the star on tasks or issues in this stage.')
|
||||
legend_blocked = fields.Char(
|
||||
'Red Kanban Label', default='Blocked', translate=True,
|
||||
help='Override the default value displayed for the blocked state for kanban selection, when the task or issue is in that stage.')
|
||||
@@ -325,9 +325,9 @@ class Task(models.Model):
|
||||
name = fields.Char(string='Task Title', track_visibility='always', required=True, index=True)
|
||||
description = fields.Html(string='Description')
|
||||
priority = fields.Selection([
|
||||
('0','Normal'),
|
||||
('1','High')
|
||||
], default='0', index=True)
|
||||
('0','Non Starred'),
|
||||
('1','Starred')
|
||||
], default='0', index=True, string="Starred")
|
||||
sequence = fields.Integer(string='Sequence', index=True, default=10,
|
||||
help="Gives the sequence order when displaying a list of tasks.")
|
||||
stage_id = fields.Many2one('project.task.type', string='Stage', track_visibility='onchange', index=True,
|
||||
|
||||
@@ -27,10 +27,9 @@ class ReportProjectTaskUser(models.Model):
|
||||
delay_endings_days = fields.Float(string='# Days to Deadline', digits=(16,2), readonly=True)
|
||||
nbr = fields.Integer('# of Tasks', readonly=True) # TDE FIXME master: rename into nbr_tasks
|
||||
priority = fields.Selection([
|
||||
('0','Low'),
|
||||
('1','Normal'),
|
||||
('2','High')
|
||||
], size=1, readonly=True)
|
||||
('0','Non Starred'),
|
||||
('1','Starred')
|
||||
], size=1, readonly=True, string="Starred")
|
||||
state = fields.Selection([
|
||||
('normal', 'In Progress'),
|
||||
('blocked', 'Blocked'),
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<filter string="My Tasks" name="my_tasks" domain="[('user_id','=',uid)]"/>
|
||||
<filter string="Unassigned" name="unassigned" domain="[('user_id', '=', False)]"/>
|
||||
<separator/>
|
||||
<filter string="New" name="draft" domain="[('stage_id.sequence', '<=', 1)]"/>
|
||||
<filter string="Starred" name="starred" domain="[('priority','=',1)]"/>
|
||||
<separator/>
|
||||
<filter string="Unread Messages" name="message_needaction" domain="[('message_needaction','=',True)]"/>
|
||||
<filter string="Archived" name="inactive" domain="[('active','=',False)]"/>
|
||||
|
||||
Reference in New Issue
Block a user