Permalink
Browse files

😍 cancelled at last

  • Loading branch information...
KolushovAlexandr committed Dec 12, 2018
1 parent e897e9f commit 18ccfa0efa39435e52a90d520c543c66d5f0e536
@@ -167,7 +167,7 @@ def _compute_completion_xml(self):
record.completion_xml = """
<div class="task_progress">
<div class="progress_info">
Your Checklist Status:
Your Checklist:
</div>
<div class ="o_kanban_counter_progress progress task_progress_bar">
<div data-filter="done"
@@ -26,7 +26,7 @@
}

.kanban_subtasks {
width: 50%;
width: 55%;
display:inline-block;
font-size: 10px;
}
@@ -57,7 +57,11 @@ odoo.define('project_task_subtask.one2many_renderer', function(require){
} else if (d.data.state === 'done') {
d.index += 400000;
} else {
d.index += 700000;
// makes cancelled subtasks stay last in line
d.index += (name_index.length + 2) * 1000000;
if (d.data.user_id.data.id !== user_id) {
d.index += (_.indexOf(name_index, d.data.user_id.data.display_name) + 1) * 1000000;
}
}
});
data = _.sortBy(data, 'index');

0 comments on commit 18ccfa0

Please sign in to comment.