Xavier ALT (OpenERP) has proposed merging
lp:~openerp-dev/openobject-client-web/6.0-opw-580262-xal 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-580262-xal/+merge/129675
Hi,
This fix a problem with getFormData() not correctly detecting "editable" status
when called from as source having to "editable" status (ex: many2one) - in that
case we have to get editable status from parent.
Regards,
Xavier
--
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-580262-xal/+merge/129675
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client-web/6.0-opw-580262-xal.
=== modified file 'addons/openerp/static/javascript/form.js'
--- addons/openerp/static/javascript/form.js 2012-10-12 07:36:21 +0000
+++ addons/openerp/static/javascript/form.js 2012-10-15 13:46:20 +0000
@@ -314,7 +314,15 @@
var frm = {};
var prefix = '';
if (source) {
- prefix = source + '/';
+ var source_paths = source.split('/')
+ while (source_paths.length > 0) {
+ var sp = source_paths.join('/')+'/_terp_editable';
+ if (jQuery(idSelector(sp)).length > 0) {
+ prefix = source_paths.join('/') + '/';
+ break;
+ }
+ source_paths = source_paths.slice(0, source_paths.length - 1);
+ }
}
var editable = jQuery(idSelector(prefix+'_terp_editable')).val();
_______________________________________________
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