modules/org.openbravo.client.application/src-db/database/sourcedata/OBSERDS_DATASOURCE.xml
author Naroa Iriarte <naroa.iriarte@openbravo.com>
Wed, 22 Apr 2015 16:57:29 +0200
changeset 26338 f919925114f0
parent 25032 49bb687fd5ea
child 28079 83f6116ba55b
permissions -rw-r--r--
Fixed issue 29064:There are problems with the organization of the notes.

There were two problems:
First: When a note was created, it had context organization instead of document organization.
To fix this, a new field which stores the note's organization has been created in the "ob-view-form-notes.js".
Second: If a note was added with an organization and after that the organization of the note
was changed, there were problems to handle it.
A new manual datasource has been created for handling the fetch,add and remove operations of the notes,
making sure that the organization filter is disabled. So, we grant the fact that if a user of one
organization creates a note and after that the organization of the note is changed to another one which
the user has not access, the user will be able to see or delete the note.
<?xml version='1.0' encoding='UTF-8'?>
<data>
<!--090A37D22E61FE94012E621729090048--><OBSERDS_DATASOURCE>
<!--090A37D22E61FE94012E621729090048-->  <OBSERDS_DATASOURCE_ID><![CDATA[090A37D22E61FE94012E621729090048]]></OBSERDS_DATASOURCE_ID>
<!--090A37D22E61FE94012E621729090048-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--090A37D22E61FE94012E621729090048-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--090A37D22E61FE94012E621729090048-->  <AD_MODULE_ID><![CDATA[9BA0836A3CD74EE4AB48753A47211BCC]]></AD_MODULE_ID>
<!--090A37D22E61FE94012E621729090048-->  <NAME><![CDATA[Notes Datasource]]></NAME>
<!--090A37D22E61FE94012E621729090048-->  <AD_TABLE_ID><![CDATA[090A37D22E61FE94012E620CD15D0030]]></AD_TABLE_ID>
<!--090A37D22E61FE94012E621729090048-->  <CLASSNAME><![CDATA[org.openbravo.service.datasource.NoteDataSource]]></CLASSNAME>
<!--090A37D22E61FE94012E621729090048-->  <OBCLKER_TEMPLATE_ID><![CDATA[2BAD445C2A0343C58E455F9BD379C690]]></OBCLKER_TEMPLATE_ID>
<!--090A37D22E61FE94012E621729090048-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--090A37D22E61FE94012E621729090048-->  <USEASTABLEDATAORIGIN><![CDATA[N]]></USEASTABLEDATAORIGIN>
<!--090A37D22E61FE94012E621729090048-->  <IDFKFILTERING><![CDATA[Y]]></IDFKFILTERING>
<!--090A37D22E61FE94012E621729090048--></OBSERDS_DATASOURCE>

<!--3C1148C0AB604DE1B51B7EA4112C325F--><OBSERDS_DATASOURCE>
<!--3C1148C0AB604DE1B51B7EA4112C325F-->  <OBSERDS_DATASOURCE_ID><![CDATA[3C1148C0AB604DE1B51B7EA4112C325F]]></OBSERDS_DATASOURCE_ID>
<!--3C1148C0AB604DE1B51B7EA4112C325F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--3C1148C0AB604DE1B51B7EA4112C325F-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--3C1148C0AB604DE1B51B7EA4112C325F-->  <AD_MODULE_ID><![CDATA[9BA0836A3CD74EE4AB48753A47211BCC]]></AD_MODULE_ID>
<!--3C1148C0AB604DE1B51B7EA4112C325F-->  <NAME><![CDATA[HQL Tables Datasource]]></NAME>
<!--3C1148C0AB604DE1B51B7EA4112C325F-->  <DESCRIPTION><![CDATA[HQL Tables Datasource]]></DESCRIPTION>
<!--3C1148C0AB604DE1B51B7EA4112C325F-->  <CLASSNAME><![CDATA[org.openbravo.service.datasource.HQLDataSourceService]]></CLASSNAME>
<!--3C1148C0AB604DE1B51B7EA4112C325F-->  <OBCLKER_TEMPLATE_ID><![CDATA[2BAD445C2A0343C58E455F9BD379C690]]></OBCLKER_TEMPLATE_ID>
<!--3C1148C0AB604DE1B51B7EA4112C325F-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--3C1148C0AB604DE1B51B7EA4112C325F-->  <USEASTABLEDATAORIGIN><![CDATA[Y]]></USEASTABLEDATAORIGIN>
<!--3C1148C0AB604DE1B51B7EA4112C325F-->  <IDFKFILTERING><![CDATA[Y]]></IDFKFILTERING>
<!--3C1148C0AB604DE1B51B7EA4112C325F--></OBSERDS_DATASOURCE>

<!--99B9CC42FDEA4CA7A4EE35BC49D61E0E--><OBSERDS_DATASOURCE>
<!--99B9CC42FDEA4CA7A4EE35BC49D61E0E-->  <OBSERDS_DATASOURCE_ID><![CDATA[99B9CC42FDEA4CA7A4EE35BC49D61E0E]]></OBSERDS_DATASOURCE_ID>
<!--99B9CC42FDEA4CA7A4EE35BC49D61E0E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--99B9CC42FDEA4CA7A4EE35BC49D61E0E-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--99B9CC42FDEA4CA7A4EE35BC49D61E0E-->  <AD_MODULE_ID><![CDATA[9BA0836A3CD74EE4AB48753A47211BCC]]></AD_MODULE_ID>
<!--99B9CC42FDEA4CA7A4EE35BC49D61E0E-->  <NAME><![CDATA[QuickLaunchDataSource]]></NAME>
<!--99B9CC42FDEA4CA7A4EE35BC49D61E0E-->  <DESCRIPTION><![CDATA[Provides the data for the open view navigation bar widget]]></DESCRIPTION>
<!--99B9CC42FDEA4CA7A4EE35BC49D61E0E-->  <CLASSNAME><![CDATA[org.openbravo.client.application.navigationbarcomponents.QuickLaunchDataSource]]></CLASSNAME>
<!--99B9CC42FDEA4CA7A4EE35BC49D61E0E-->  <OBCLKER_TEMPLATE_ID><![CDATA[2BAD445C2A0343C58E455F9BD379C690]]></OBCLKER_TEMPLATE_ID>
<!--99B9CC42FDEA4CA7A4EE35BC49D61E0E-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--99B9CC42FDEA4CA7A4EE35BC49D61E0E-->  <USEASTABLEDATAORIGIN><![CDATA[N]]></USEASTABLEDATAORIGIN>
<!--99B9CC42FDEA4CA7A4EE35BC49D61E0E-->  <IDFKFILTERING><![CDATA[Y]]></IDFKFILTERING>
<!--99B9CC42FDEA4CA7A4EE35BC49D61E0E--></OBSERDS_DATASOURCE>

<!--C17951F970E942FD9F3771B7BE91D049--><OBSERDS_DATASOURCE>
<!--C17951F970E942FD9F3771B7BE91D049-->  <OBSERDS_DATASOURCE_ID><![CDATA[C17951F970E942FD9F3771B7BE91D049]]></OBSERDS_DATASOURCE_ID>
<!--C17951F970E942FD9F3771B7BE91D049-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--C17951F970E942FD9F3771B7BE91D049-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--C17951F970E942FD9F3771B7BE91D049-->  <AD_MODULE_ID><![CDATA[9BA0836A3CD74EE4AB48753A47211BCC]]></AD_MODULE_ID>
<!--C17951F970E942FD9F3771B7BE91D049-->  <NAME><![CDATA[QuickCreateDataSource]]></NAME>
<!--C17951F970E942FD9F3771B7BE91D049-->  <DESCRIPTION><![CDATA[Datasource for the quick create navigation bar widget]]></DESCRIPTION>
<!--C17951F970E942FD9F3771B7BE91D049-->  <CLASSNAME><![CDATA[org.openbravo.client.application.navigationbarcomponents.QuickCreateDataSource]]></CLASSNAME>
<!--C17951F970E942FD9F3771B7BE91D049-->  <OBCLKER_TEMPLATE_ID><![CDATA[2BAD445C2A0343C58E455F9BD379C690]]></OBCLKER_TEMPLATE_ID>
<!--C17951F970E942FD9F3771B7BE91D049-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--C17951F970E942FD9F3771B7BE91D049-->  <USEASTABLEDATAORIGIN><![CDATA[N]]></USEASTABLEDATAORIGIN>
<!--C17951F970E942FD9F3771B7BE91D049-->  <IDFKFILTERING><![CDATA[Y]]></IDFKFILTERING>
<!--C17951F970E942FD9F3771B7BE91D049--></OBSERDS_DATASOURCE>

</data>