Merge with lp:~openerp-dev/openobject-addons/trunk-addons_project-task-hip
bzr revid: rgaopenerp-20121030133616-f8cbc064pnrdn309
This commit is contained in:
commit
3d7067d2a7
|
@ -821,6 +821,11 @@ class task(base_stage, osv.osv):
|
|||
"""
|
||||
return self.write(cr, uid, ids, {'priority' : priority})
|
||||
|
||||
def set_very_high_priority(self, cr, uid, ids, *args):
|
||||
"""Set task priority to very high
|
||||
"""
|
||||
return self.set_priority(cr, uid, ids, '0')
|
||||
|
||||
def set_high_priority(self, cr, uid, ids, *args):
|
||||
"""Set task priority to high
|
||||
"""
|
||||
|
|
|
@ -531,8 +531,9 @@
|
|||
<a t-if="record.kanban_state.raw_value === 'normal'" type="object" string="In Progress" name="set_kanban_state_done" class="oe_kanban_status"> </a>
|
||||
<a t-if="record.kanban_state.raw_value === 'done'" type="object" string="Stage Done" name="set_kanban_state_blocked" class="oe_kanban_status oe_kanban_status_green"> </a>
|
||||
<a t-if="record.kanban_state.raw_value === 'blocked'" type="object" string="Blocked" name="set_kanban_state_normal" class="oe_kanban_status oe_kanban_status_red"> </a>
|
||||
<a t-if="record.priority.raw_value == 1" type="object" string="Very Important" name="set_normal_priority" class="oe_e oe_star_on">7</a>
|
||||
<a t-if="record.priority.raw_value != 1" type="object" string="Important" name="set_high_priority" class="oe_e oe_star_off">7</a>
|
||||
<a t-if="record.priority.raw_value == 2" type="object" string="Important" name="set_very_high_priority" class="oe_e oe_star_on">7</a>
|
||||
<a t-if="record.priority.raw_value == 1" type="object" string="Normal" name="set_normal_priority" class="oe_e oe_star_off">7</a>
|
||||
<a t-if="record.priority.raw_value == 0" type="object" string="Very Important" name="set_high_priority" class="oe_e oe_star_very_high_priority">7</a>
|
||||
<img t-att-src="kanban_image('res.users', 'image_small', record.user_id.raw_value)" t-att-title="record.user_id.value" width="24" height="24" class="oe_kanban_avatar"/>
|
||||
</div>
|
||||
<div class="oe_kanban_footer_left">
|
||||
|
|
|
@ -2,6 +2,21 @@
|
|||
margin: 2px;
|
||||
}
|
||||
|
||||
.openerp .oe_kanban_view .oe_kanban_content .oe_star_very_high_priority {
|
||||
color: #cccccc;
|
||||
text-shadow: 0 0 2px black;
|
||||
vertical-align: top;
|
||||
position: relative;
|
||||
top: -5px;
|
||||
}
|
||||
.openerp .oe_kanban_view .oe_kanban_content .oe_star_very_high_priority:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.openerp .oe_kanban_view .oe_kanban_content .oe_star_very_high_priority {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.oe_kanban_project {
|
||||
width: 220px;
|
||||
min-height: 160px;
|
||||
|
|
Loading…
Reference in New Issue