Chirag Patel (OpenERP) has proposed merging
lp:~openerp-dev/openobject-client-web/6.0-opw-16441-cpa into
lp:openobject-client-web/6.0.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-16441-cpa/+merge/71160
Hello,
[Fix]: This branch will resolve the issue of the on_change() in the sale_order
where the issue are as follows,
1. on_change() called when the form is open in the edit mode, Changes
disappears.( Ex: sale order form changes applied for shop_id, price_list ,
analytic account and sale_order_line).
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-16441-cpa/+merge/71160
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client-web/6.0-opw-16441-cpa.
=== modified file 'addons/openerp/static/javascript/openerp/openerp.base.js'
--- addons/openerp/static/javascript/openerp/openerp.base.js 2011-05-26 08:05:51 +0000
+++ addons/openerp/static/javascript/openerp/openerp.base.js 2011-08-11 07:51:26 +0000
@@ -270,7 +270,15 @@
var newUrl = $.hash();
if(!newUrl || newUrl == $.hash.currentUrl) {
//Only autocall form onchanges when o2m open in popup.
- initial_onchange_triggers();
+ if (jQuery('[callback]').length){
+ name = jQuery('[callback]').first().attr('id');
+ var parent_prefix = name.indexOf('/') > -1 ? name.slice(0, name.lastIndexOf('/') + 1) : '';
+ if (parent_prefix != ''){
+ if(jQuery(idSelector(parent_prefix + '_terp_id')).val() == 'False'){
+ initial_onchange_triggers();
+ }
+ }
+ }
return;
}
openLink(newUrl);
_______________________________________________
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