src-db/database/sourcedata/AD_MODULE.xml
author Carlos Aristu <carlos.aristu@openbravo.com>
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'?>
<data>
<!--0--><AD_MODULE>
<!--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[www.openbravo.com]]></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 http://www.openbravo.com/legal/license.html or in the legal folder of the Openbravo ERP core distribution.]]></LICENSE>
<!--0-->  <JAVAPACKAGE><![CDATA[org.openbravo]]></JAVAPACKAGE>
<!--0-->  <LICENSETYPE><![CDATA[OBPL]]></LICENSETYPE>
<!--0-->  <AUTHOR><![CDATA[Openbravo S.L.U.]]></AUTHOR>
<!--0-->  <ISTRANSLATIONREQUIRED><![CDATA[Y]]></ISTRANSLATIONREQUIRED>
<!--0-->  <AD_LANGUAGE><![CDATA[en_US]]></AD_LANGUAGE>
<!--0-->  <HASCHARTOFACCOUNTS><![CDATA[N]]></HASCHARTOFACCOUNTS>
<!--0-->  <ISTRANSLATIONMODULE><![CDATA[N]]></ISTRANSLATIONMODULE>
<!--0-->  <HASREFERENCEDATA><![CDATA[Y]]></HASREFERENCEDATA>
<!--0-->  <REFERENCEDATAINFO><![CDATA[Standard document types for orders, invoices, etc. and settings]]></REFERENCEDATAINFO>
<!--0-->  <VERSION_LABEL><![CDATA[dev]]></VERSION_LABEL>
<!--0-->  <ISCOMMERCIAL><![CDATA[N]]></ISCOMMERCIAL>
<!--0-->  <ISTRIALALLOWED><![CDATA[N]]></ISTRIALALLOWED>
<!--0--></AD_MODULE>

</data>