Fixes Issue 23661: In Sales Invoice and Purchase Invoice windows
authorDavid Miguelez <david.miguelez@openbravo.com>
Tue, 30 Apr 2013 20:06:23 +0200
changeset 20247 acfb929ac422
parent 20246 ad7168af39fc
child 20248 417c9e911cc0
Fixes Issue 23661: In Sales Invoice and Purchase Invoice windows
do not filter the Product Selector by Warehouse.
src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml
--- a/src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml	Mon Apr 29 13:47:02 2013 +0200
+++ b/src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml	Tue Apr 30 20:06:23 2013 +0200
@@ -1028,7 +1028,7 @@
 <!--7A814E72DF9240E280BA6B2AEFF9405A-->  <SORTNO><![CDATA[35]]></SORTNO>
 <!--7A814E72DF9240E280BA6B2AEFF9405A-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--7A814E72DF9240E280BA6B2AEFF9405A-->  <ISOUTFIELD><![CDATA[N]]></ISOUTFIELD>
-<!--7A814E72DF9240E280BA6B2AEFF9405A-->  <DEFAULT_EXPRESSION><![CDATA[if (OB.getWindowId() && OB.getSession().getAttribute(OB.getWindowId() +"|M_WAREHOUSE_ID")) {   OB.getSession().getAttribute(OB.getWindowId() +"|M_WAREHOUSE_ID"); } else {   if (OB.getContext().getWarehouse() != null) {     OB.getContext().getWarehouse().id;   } }]]></DEFAULT_EXPRESSION>
+<!--7A814E72DF9240E280BA6B2AEFF9405A-->  <DEFAULT_EXPRESSION><![CDATA[if (OB.getWindowId() != "183" && OB.getWindowId() != "167") { if (OB.getWindowId() && OB.getSession().getAttribute(OB.getWindowId() +"|M_WAREHOUSE_ID")) { OB.getSession().getAttribute(OB.getWindowId() +"|M_WAREHOUSE_ID"); } else { if (OB.getContext().getWarehouse() != null) { OB.getContext().getWarehouse().id; } } }]]></DEFAULT_EXPRESSION>
 <!--7A814E72DF9240E280BA6B2AEFF9405A-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
 <!--7A814E72DF9240E280BA6B2AEFF9405A--></OBUISEL_SELECTOR_FIELD>