Mohammed Shekha(Open ERP) has proposed merging
lp:~openerp-dev/openobject-client-web/6.0-opw-575440-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-575440-msh/+merge/109069
Hello,
Fixed the issue of action, when there is no record selected from listview, so
it should show the message that no record is selected, instead of do the action
on 0th record in listview, as same behavior is available in version 6.1
Demo :- Open any list view where there is an action created, do not select any
record and just call that action, action will work for 0th record by default
even though you have not selected any record.
Currently behaviour version 6.1 is that it will not allow you to call action if
you have not selected any record.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-575440-msh/+merge/109069
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client-web/6.0-opw-575440-msh.
=== modified file 'addons/openerp/static/javascript/form.js'
--- addons/openerp/static/javascript/form.js 2012-05-03 20:52:57 +0000
+++ addons/openerp/static/javascript/form.js 2012-06-07 05:47:19 +0000
@@ -964,12 +964,8 @@
new ListView('_terp_list').getSelectedRecords().join(',') +
']';
if (eval(params['_terp_selection']).length == 0) {
- var ids = eval(jQuery('#_terp_ids').val());
- if (ids && ids.length > 0){
- params['_terp_selection'] = '[' + ids[0] + ']';
- } else {
- error_display(_('You must select one or several records !'));
- }
+ error_display(_('You must select one or several records !'));
+ return;
}
var id = eval(params['_terp_selection'])[0]
} else {
_______________________________________________
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