author Carlos Aristu <>
Wed, 13 Nov 2019 19:14:34 +0100
changeset 36742 0a493e062362
parent 36733 ae8a9b5dd30f
permissions -rw-r--r--
fixes bug 42270: window can be not initialized if default saved view is missing

Having a window with several saved view personalizations, if the default saved view is not provided by the WindowSettingsActionHandler then the header's grid was not properly initialized, leaving it in an inconsistent state which did not allow to save records.

Note that it already exists a mechanism that tries to avoid this scenario by deleting the configuration used to mark a personalization as default in case it does not exists (WindowPersonalizationEventHandler). But this inconsistent state can be also reached in case the window personalization is manually deleted through the database (i.e., by deleting the corresponding obuiapp_uipersonalization record).

To fix this problem now we are forcing the grid initialization in case the default view is not found.
<?xml version='1.0' encoding='UTF-8'?>
<!--0-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
<!--0-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--0-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--0-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--0-->  <NAME><![CDATA[Core]]></NAME>
<!--0-->  <VERSION><![CDATA[3.0.36548]]></VERSION>
<!--0-->  <DESCRIPTION><![CDATA[Core module is the base one]]></DESCRIPTION>
<!--0-->  <HELP><![CDATA[Core module is the base one, all developments in core are included as part of the standard Openbravo ERP.]]></HELP>
<!--0-->  <URL><![CDATA[]]></URL>
<!--0-->  <TYPE><![CDATA[M]]></TYPE>
<!--0-->  <LICENSE><![CDATA[Licensed under the Openbravo Public License Version 1.1.
You may obtain a copy of the License at or in the legal folder of the Openbravo ERP core distribution.]]></LICENSE>
<!--0-->  <JAVAPACKAGE><![CDATA[org.openbravo]]></JAVAPACKAGE>
<!--0-->  <AUTHOR><![CDATA[Openbravo S.L.U.]]></AUTHOR>
<!--0-->  <AD_LANGUAGE><![CDATA[en_US]]></AD_LANGUAGE>
<!--0-->  <REFERENCEDATAINFO><![CDATA[Standard document types for orders, invoices, etc. and settings]]></REFERENCEDATAINFO>