Sananaz (Open ERP) has proposed merging
lp:~openerp-dev/openobject-client-web/trunk-bug-726491-sma into
lp:openobject-client-web.
Requested reviews:
OpenERP SA's Web Client R&D (openerp-dev-web)
Related bugs:
Bug #726491 in OpenERP Web Client: "Wizards do not respect the existing
OSV.OSV record and gets called disregard to the record exists or not."
https://bugs.launchpad.net/openobject-client-web/+bug/726491
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/trunk-bug-726491-sma/+merge/53438
Hello,
Please check with the sidebar actions:
Go to Product list > Click on `New` (Don't Save) > Click Procurement Request
(Actions at sidebar)
It gives traceback.
So just give the message (`You must save this record to perform the action !`)
same as GTK client if form is not saved don't perform any action.
Thank you.
--
https://code.launchpad.net/~openerp-dev/openobject-client-web/trunk-bug-726491-sma/+merge/53438
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client-web/trunk-bug-726491-sma.
=== modified file 'addons/openerp/static/javascript/form.js'
--- addons/openerp/static/javascript/form.js 2011-02-16 08:57:33 +0000
+++ addons/openerp/static/javascript/form.js 2011-03-15 13:37:06 +0000
@@ -991,6 +991,9 @@
var id = eval(params['_terp_selection'])[0]
} else {
var id = jQuery('[id="'+field+'"]').val();
+ if (id == 'False') {
+ error_display(_("You must save this record to perform the action !"))
+ return;
}
var action_id = $src.attr('action_id') || null;
_______________________________________________
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