Sananaz (Open ERP) has proposed merging
lp:~openerp-dev/openobject-client-web/6.0-opw-5610-sma 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-5610-sma/+merge/61356
Hello,
To reproduce problem follow this steps over stable 6.0:
- Install module l10n_be
- Create new customer invoice and confirm
- Create new bank statement, enter statement line with (Click on Import
Invoices button) Add the payment corresponding to the customer invoice which is
created in the previous step.
Now `Edit` statement line hitting F1 in the statement line at last "Payment"
field. When open customer payment form this time need to show lines at
`invoices and outstanding transactions` which is not showing in web-client due
to onchange not call.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-5610-sma/+merge/61356
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client-web/6.0-opw-5610-sma.
=== modified file 'addons/openerp/static/javascript/openerp/openerp.base.js'
--- addons/openerp/static/javascript/openerp/openerp.base.js 2011-05-10 14:43:50 +0000
+++ addons/openerp/static/javascript/openerp/openerp.base.js 2011-05-18 08:36:00 +0000
@@ -273,6 +273,16 @@
jQuery(window).bind('hashchange', function () {
var newUrl = $.hash();
if(!newUrl || newUrl == $.hash.currentUrl) {
+ //Only autocall form onchanges when o2m open in popup.
+ jQuery(ELEMENTS_WITH_CALLBACK).each(function() {
+ if (jQuery(this).attr('kind') == 'boolean') {
+ onBooleanClicked(jQuery(this).attr('id'));
+ } else {
+ // We pass an arbitrary parameter to the event so we can
+ // differenciate a user event from a trigger
+ jQuery(this).trigger('change', [true]);
+ }
+ });
return;
}
openLink(newUrl);
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-web
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-web
More help : https://help.launchpad.net/ListHelp