fixed bug 36254: exception logged for process executions created in non * org
authorAsier Lostalé <asier.lostale@openbravo.com>
Fri, 16 Jun 2017 11:53:16 +0200
changeset 32421 e66f5346408c
parent 32420 ad1e5c216840
child 32422 faaa2e336015
fixed bug 36254: exception logged for process executions created in non * org

When a process request is created in a non * organization, it creates an
AD_Process_Run record in its same organization, which is correct. But when
opening in form view the corresponding execution an exception was logged.

The problem was AD_Process_Run and AD_Process_Execution_V where incorrectly
defined with "System/Client" Data Acces Level even their records can be craeted
at any level (DAL is not used in this case, so its not prevented).

Fixed by setting "All" Data Access Level to both.
src-db/database/sourcedata/AD_TABLE.xml
--- a/src-db/database/sourcedata/AD_TABLE.xml	Thu Nov 23 17:24:34 2017 +0100
+++ b/src-db/database/sourcedata/AD_TABLE.xml	Fri Jun 16 11:53:16 2017 +0200
@@ -10597,7 +10597,7 @@
 <!--6567DD0C6715472CAE04255A4BEC4654-->  <TABLENAME><![CDATA[AD_Process_Run]]></TABLENAME>
 <!--6567DD0C6715472CAE04255A4BEC4654-->  <CLASSNAME><![CDATA[ProcessRun]]></CLASSNAME>
 <!--6567DD0C6715472CAE04255A4BEC4654-->  <ISVIEW><![CDATA[N]]></ISVIEW>
-<!--6567DD0C6715472CAE04255A4BEC4654-->  <ACCESSLEVEL><![CDATA[6]]></ACCESSLEVEL>
+<!--6567DD0C6715472CAE04255A4BEC4654-->  <ACCESSLEVEL><![CDATA[7]]></ACCESSLEVEL>
 <!--6567DD0C6715472CAE04255A4BEC4654-->  <AD_WINDOW_ID><![CDATA[EF3E837705944F4DBF398D683D36ACE0]]></AD_WINDOW_ID>
 <!--6567DD0C6715472CAE04255A4BEC4654-->  <ISSECURITYENABLED><![CDATA[N]]></ISSECURITYENABLED>
 <!--6567DD0C6715472CAE04255A4BEC4654-->  <ISDELETEABLE><![CDATA[Y]]></ISDELETEABLE>
@@ -11048,7 +11048,7 @@
 <!--7F900CBEF00C45D2833F897E12BAE86E-->  <TABLENAME><![CDATA[AD_Process_Execution_V]]></TABLENAME>
 <!--7F900CBEF00C45D2833F897E12BAE86E-->  <CLASSNAME><![CDATA[ProcessExecution]]></CLASSNAME>
 <!--7F900CBEF00C45D2833F897E12BAE86E-->  <ISVIEW><![CDATA[Y]]></ISVIEW>
-<!--7F900CBEF00C45D2833F897E12BAE86E-->  <ACCESSLEVEL><![CDATA[6]]></ACCESSLEVEL>
+<!--7F900CBEF00C45D2833F897E12BAE86E-->  <ACCESSLEVEL><![CDATA[7]]></ACCESSLEVEL>
 <!--7F900CBEF00C45D2833F897E12BAE86E-->  <AD_WINDOW_ID><![CDATA[EF3E837705944F4DBF398D683D36ACE0]]></AD_WINDOW_ID>
 <!--7F900CBEF00C45D2833F897E12BAE86E-->  <ISSECURITYENABLED><![CDATA[N]]></ISSECURITYENABLED>
 <!--7F900CBEF00C45D2833F897E12BAE86E-->  <ISDELETEABLE><![CDATA[Y]]></ISDELETEABLE>