~unifield-team/unifield-web/utp-226

« back to all changes in this revision

Viewing changes to addons/openerp/widgets/templates/listgrid/listgrid.mako

  • Committer: jf
  • Date: 2012-07-03 14:44:58 UTC
  • Revision ID: jf@tempo4-20120703144458-n9qag19tjrsck2wt
OEB-116 Cannot sort by fields.function
lp:openobject-client-web at revision 4842

Show diffs side-by-side

added added

removed removed

Lines of Context:
240
240
                                % for (field, field_attrs) in headers:
241
241
                                    % if field == 'button':
242
242
                                        <th class="grid-cell"><div style="width: 0;"></div></th>
 
243
                                    % elif (field_attrs.get('function') and not field_attrs.get('store')):
 
244
                                        <th id="grid-data-column/${(name != '_terp_list' or None) and (name + '/')}${field}" class="grid-cell ${field_attrs.get('type', 'char')}" kind="${field_attrs.get('type', 'char')}">${field_attrs['string']}</th>
243
245
                                    % else:
244
246
                                        <th id="grid-data-column/${(name != '_terp_list' or None) and (name + '/')}${field}" class="grid-cell ${field_attrs.get('type', 'char')}" kind="${field_attrs.get('type', 'char')}" style="cursor: pointer;" onclick="new ListView('${name}').sort_by_order('${field}', this)">${field_attrs['string']}</th>
245
247
                                    % endif