Mohammed Shekha(Open ERP) has proposed merging
lp:~openerp-dev/openobject-client-web/6.0-opw-573018-msh into
lp:openobject-client-web.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-573018-msh/+merge/99466
Hello,
Fixed the issue of sorting pointer on function field, the mouse pointer should
not change on function field and also the sorting method should not be called,
although the sorting on fields.function not going to do, that's why re move the
mouse pointer css and function call.
Demo :- Product List view -> try to sort the list view on real stock, virtual
stock, you will see just function is called which calls listgrid.py's get
method but list will not be sort.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-573018-msh/+merge/99466
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client-web/6.0-opw-573018-msh.
=== modified file 'addons/openerp/widgets/templates/listgrid/listgrid.mako'
--- addons/openerp/widgets/templates/listgrid/listgrid.mako 2011-07-28 13:04:00 +0000
+++ addons/openerp/widgets/templates/listgrid/listgrid.mako 2012-03-27 04:55:22 +0000
@@ -223,6 +223,8 @@
% for (field, field_attrs) in headers:
% if field == 'button':
<th class="grid-cell"><div style="width: 0;"></div></th>
+ % elif 'function' in field_attrs:
+ <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>
% else:
<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>
% endif
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp