[IMP] kanbna:- if no group by on field then folding and unfolding columns work.
bzr revid: ysa@tinyerp.com-20110923115422-0oi0y9pcj3swxg82
This commit is contained in:
parent
092190e8de
commit
04d3522374
|
@ -194,7 +194,7 @@ openerp.web_kanban.KanbanView = openerp.web.View.extend({
|
|||
var record_per_group = Math.round((records).length / this.NO_OF_COLUMNS);
|
||||
this.all_display_data = [];
|
||||
for (var i=0, ii=this.NO_OF_COLUMNS; i < ii; i++) {
|
||||
this.all_display_data.push({'records': records.slice(0,record_per_group), 'value':false, 'header' : false, 'ids':[]});
|
||||
this.all_display_data.push({'records': records.slice(0,record_per_group), 'value':i, 'header' : false, 'ids':[]});
|
||||
records.splice(0,record_per_group);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<td t-foreach="data" t-as="columns" class="oe_table_column oe_column_heading" t-att-id="'column_' + columns.value">
|
||||
<img t-att-id="columns.value" class="fold-columns-icon" src="/web_kanban/static/src/img/minus-icon.png"/>
|
||||
<div class="oe_fold_column" t-att-id="'column_' + columns.value">
|
||||
<t t-if="columns.value" t-esc="columns.header"/>
|
||||
<t t-if="columns.value && columns.header" t-esc="columns.header"/>
|
||||
<t t-if="columns.aggregates">
|
||||
<br/><t t-esc="columns.aggregates"/>
|
||||
</t>
|
||||
|
@ -21,7 +21,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td t-foreach="data" t-as="columns" class="oe_column oe_table_column" t-att-id="'column_' + columns.value" t-attf-style="width: #{Math.round(99 / data.length)}%">
|
||||
<p class="oe_vertical_text" t-att-id="'column_' + columns.value"> <t t-esc="columns.header"/></p>
|
||||
<p class="oe_vertical_text" t-att-id="'column_' + columns.value && columns.header"> <t t-esc="columns.header"/></p>
|
||||
<div t-foreach="columns.records" t-as="record" class="oe_fold_column oe_kanban_record" t-att-id="'main_' + record.id"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue