details: https://code.openbravo.com/erp/devel/pi/rev/bb58b51ad6f7 changeset: 29984:bb58b51ad6f7 user: Carlos Aristu <carlos.aristu <at> openbravo.com> date: Fri Sep 02 09:03:51 2016 +0200 summary: related to issue 33775: take into account case when license is not professional
diffstat: modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diffs (29 lines): diff -r 992caa87c40b -r bb58b51ad6f7 modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js --- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js Wed Aug 31 15:02:29 2016 +0200 +++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js Fri Sep 02 09:03:51 2016 +0200 @@ -551,10 +551,16 @@ }, setPersonalization: function (personalization) { - var i, defaultView, persDefaultValue, views, currentView, length, me = this; + var i, defaultView, persDefaultValue, views, currentView = this.activeView || this.view, + length, me = this; // only personalize if there is a professional license if (!OB.Utilities.checkProfessionalLicense(null, true)) { + // open new record in form if the form opening has been deferred + if (currentView.deferOpenNewEdit) { + currentView.editRecord(); + this.command = null; + } return; } @@ -642,7 +648,6 @@ this.setFocusInView(); // personalization has been applied, open new record in form if the form opening has been deferred - currentView = this.activeView || this.view; if (currentView.deferOpenNewEdit) { currentView.editRecord(); this.command = null; ------------------------------------------------------------------------------ _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits