Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027322Openbravo ERPA. Platformpublic2014-08-13 13:272014-09-25 11:30
umartirena 
AugustoMauch 
urgentmajoralways
closedfixed 
5
 
3.0PR14Q43.0PR14Q4 
shankarb
Core
No
0027322: Selectors don't work properly in Parameter Windows if are opened directly from a menu entry
Selectors don't work properly in Parameter Windows if are opened directly from a menu entry. The result of the selector is not being filtered properly by organization. This happens because there is not a context parameter called "_org", and in the back end it is expected in that way. Normally this parameter would be retrieved from the row selected in the parent grid when this process is opened in a pop up. But this is not the case.
Create a process definition with an Organization parameter and a Business Partner parameter.
Create a menu entry that opens this process definition directly.
Realize that the Business Partner selector does not filter by the org of the other parameter(name ad_org_id), neither the logging organization.
Find any parameter named "_org", and if it is not found, try to use another one called ad_org_id, or something similar.
No tags attached.
related to feature request 0027518 new eduardo_Argal Modules It would be fine if business partner selector could be filtered by the ones that belong to the natural tree of the defined org 
? issue27322.export (1,834) 2014-09-01 12:49
https://issues.openbravo.com/file_download.php?file_id=7190&type=bug
Issue History
2014-08-13 13:27umartirenaNew Issue
2014-08-13 13:27umartirenaAssigned To => AugustoMauch
2014-08-13 13:27umartirenaModules => Core
2014-08-13 13:27umartirenaTriggers an Emergency Pack => No
2014-08-13 13:28umartirenaTarget Version => 3.0PR14Q4
2014-08-13 13:41AugustoMauchTypefeature request => defect
2014-09-01 12:49AugustoMauchFile Added: issue27322.export
2014-09-01 16:40ngarciaIssue Monitored: ngarcia
2014-09-01 16:53AugustoMauchIssue Monitored: shankarb
2014-09-01 16:54AugustoMauchReview Assigned To => shankarb
2014-09-01 16:56hgbotCheckin
2014-09-01 16:56hgbotNote Added: 0069900
2014-09-01 16:56hgbotStatusnew => resolved
2014-09-01 16:56hgbotResolutionopen => fixed
2014-09-01 16:56hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/33f4f0a2e46de4c2f6accd0a60cfa303d58466a4 [^]
2014-09-01 16:57AugustoMauchNote Added: 0069901
2014-09-01 17:16ngarciaRelationship addedrelated to 0027518
2014-09-02 19:52hudsonbotCheckin
2014-09-02 19:52hudsonbotNote Added: 0069920
2014-09-03 07:11shankarbNote Added: 0069927
2014-09-03 07:11shankarbStatusresolved => closed
2014-09-03 07:11shankarbFixed in Version => 3.0PR14Q4
2014-09-23 10:36hgbotCheckin
2014-09-23 10:36hgbotNote Added: 0070276
2014-09-23 10:36hgbotStatusclosed => resolved
2014-09-23 10:36hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/33f4f0a2e46de4c2f6accd0a60cfa303d58466a4 [^] => http://code.openbravo.com/erp/devel/pi/rev/fa9897fd81dcd0a07d1cac5b6e16f3fb8d809e6d [^]
2014-09-24 08:04shankarbNote Added: 0070295
2014-09-24 08:04shankarbStatusresolved => closed
2014-09-25 11:30hudsonbotCheckin
2014-09-25 11:30hudsonbotNote Added: 0070357

Notes
(0069900)
hgbot   
2014-09-01 16:56   
Repository: erp/devel/pi
Changeset: 33f4f0a2e46de4c2f6accd0a60cfa303d58466a4
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Sep 01 12:48:37 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/33f4f0a2e46de4c2f6accd0a60cfa303d58466a4 [^]

Fixes issue 27322: Param windows opened from the menu fill in _org parameter

The problem was that the organization used to set the _org parameter was the one of the record selected in the view from where the process window has been opened. If the window is opened from the menu then the _org parameter was not being set, and some validations were not working.

Now, if the parameter window has an ad_org_id parameter and is not empty, its value will be used to set _org. Otherwise the current user organization will be used.

---
M modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js
---
(0069901)
AugustoMauch   
2014-09-01 16:57   
To test it:
- Install this module: https://code.openbravo.com/erp/mods/org.openbravo.finance.addpaymentcreditpaymentsgrid/ [^]
- Open the Add Payment process from the menu
- Check that the _org parameter is sent in the request done to populate the selectors
(0069920)
hudsonbot   
2014-09-02 19:52   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6b48609f5665 [^]
Maturity status: Test
(0069927)
shankarb   
2014-09-03 07:11   
Code reviewed and verified in pi changeset 33f4f0a2e46d
(0070276)
hgbot   
2014-09-23 10:36   
Repository: erp/devel/pi
Changeset: fa9897fd81dcd0a07d1cac5b6e16f3fb8d809e6d
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Sep 01 12:48:37 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/fa9897fd81dcd0a07d1cac5b6e16f3fb8d809e6d [^]

Fixes issue 27322: Param windows opened from the menu fill in _org parameter

If the parameter window has an ad_org_id parameter and is not empty, its value will be used to set _org. Otherwise the current user organization will be used.

---
M modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js
---
(0070295)
shankarb   
2014-09-24 08:04   
Same fix applied again in reconciliation refactor project merge.
(0070357)
hudsonbot   
2014-09-25 11:30   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/63604e8e17b7 [^]
Maturity status: Test