[IMP]click on kanban opens tasks

bzr revid: sgo@tinyerp.com-20120405094253-f0fzyua28m5opuoy
This commit is contained in:
Sanjay Gohel (Open ERP) 2012-04-05 15:12:53 +05:30
parent 2fc71b5ac3
commit d3c4b80fb8
3 changed files with 17 additions and 1 deletions

View File

@ -196,10 +196,11 @@
<h4 id="list" height="10px">
<a>
<t t-if="record.task.raw_value">
<button name="open_tasks" class="oe_project_buttons" type="object"><t t-if="record.open_task.value &lt;= 1"> Task</t><t t-if="record.open_task.value &gt; 1"> Tasks</t>(<t t-esc="record.open_task.value"/>)</button>
<button name="open_tasks" id = "open_tasks" class="oe_project_buttons" type="object"><t t-if="record.open_task.value &lt;= 1"> Task</t><t t-if="record.open_task.value &gt; 1"> Tasks</t>(<t t-esc="record.open_task.value"/>)</button>
</t>
</a>
</h4>
<button class="test" >
<table class="project_fields">
<tr id="deadline" t-if="record.date.raw_value">
<th align="left">Deadline</th>
@ -229,6 +230,7 @@
<img t-att-src="kanban_image('res.users', 'avatar', member)" t-att-title="member" t-att-id="member" class="project_avatar"/>
</t>
</t>
</button>
</li>
</div>
</t>

View File

@ -76,6 +76,17 @@ table {
font-family: "mnmliconsRegular" !important;
font-size: 21px;
font-weight: 300 !important; }
.test {
display: inline-block;
background-color: transparent;
min-height: 120px;
min-width: 250px;
border: hidden;
text-align: left;
color: #8A89BA;
}
.dropdown-menu {
display: none;

View File

@ -9,6 +9,9 @@ openerp.project = function(openerp) {
}).mouseout(function() {
return $(this).find('.oe_project_kanban_action').hide();
});
$('.test').click(function(){
$('#open_tasks').click()
});
_.each($('.oe_project_kanban_vignette'),function(record){
_.each(record.getElementsByTagName('img'),function(img){
var domain = [['id','=',img.getAttribute("id")]];