Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010418Openbravo ERPA. Platformpublic2009-08-27 12:072009-10-06 11:53
gorkaion 
alostale 
immediatemajoralways
closedfixed 
20Gentoo
2.50 
2.50MP62.50MP6 
Core
No
0010418: Project selector inconsistent behavior with organization security
The project selector shows all the projects not taking into account the organization of the record that is being editing.

But when the key is typed in the field and the enter key is pressed the query that searches for the project it does.

So, it can happen the case that you type the key and press enter. And the popup gets open with just one project in the list, when the expected behavior would be to automatically select that only project.
Create a multiphase project in organization A. you can also change the organization of an existing one (I tested it with the riley project).

go to sales order and start filling a new one. Set the header to organization B, or another one that it is not in the natural tree of A.

In the project field type the key of the created/modified project and press enter.

The popup opens showing only your project.

Press cancel and change the organization of the sales order to A.

Type again the key of the project and press enter.

Notice that this time the project is automatically selected and the popup closed.
The organization security should also be properly applied in the query of the grid so only projects in the natural tree of the record are shown, as it happens when a drop-down is used instead of the selector.
No tags attached.
related to defect 00106542.50MP7 closed alostale Business Partner and Product selectors inconsistent behavior with organization security 
Issue History
2009-08-27 12:07gorkaionNew Issue
2009-08-27 12:07gorkaionAssigned To => rafaroda
2009-08-28 12:17rafarodaNote Added: 0019251
2009-08-28 12:17rafarodaAssigned Torafaroda => iperdomo
2009-08-28 12:17rafarodaPriorityimmediate => urgent
2009-08-28 12:17rafarodaStatusnew => scheduled
2009-08-28 12:17rafarodaCategory08. Project and service management => A. Platform
2009-08-28 12:17rafarodaversion => 2.50
2009-08-28 12:17rafarodaSteps to Reproduce Updated
2009-08-28 12:18rafarodaIssue Monitored: rafaroda
2009-09-16 06:33rafarodaNote Added: 0020102
2009-09-16 06:33rafarodaPriorityurgent => immediate
2009-09-16 06:33rafarodaTarget Version => 2.50MP6
2009-09-16 12:19iperdomoAssigned Toiperdomo => alostale
2009-09-17 12:11hgbotCheckin
2009-09-17 12:11hgbotNote Added: 0020135
2009-09-17 12:11hgbotStatusscheduled => resolved
2009-09-17 12:11hgbotResolutionopen => fixed
2009-09-17 12:11hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5308f2ed4b1ca43e1202ff89be1ac5acbbcc4d72 [^]
2009-09-18 09:04sureshbabuStatusresolved => new
2009-09-18 09:04sureshbabuResolutionfixed => open
2009-09-18 09:04sureshbabuNote Added: 0020182
2009-09-18 09:18rafarodaRelationship addedrelated to 0010654
2009-09-18 09:18rafarodaStatusnew => scheduled
2009-09-22 11:11hgbotCheckin
2009-09-22 11:11hgbotNote Added: 0020260
2009-09-22 11:11hgbotStatusscheduled => resolved
2009-09-22 11:11hgbotResolutionopen => fixed
2009-09-22 11:11hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/5308f2ed4b1ca43e1202ff89be1ac5acbbcc4d72 [^] => http://code.openbravo.com/erp/devel/pi/rev/2c5ea17a55e02517c582bf03e6cdd4970b7bd1ef [^]
2009-09-22 12:32psarobeStatusresolved => closed
2009-09-22 12:32psarobeNote Added: 0020266
2009-09-22 12:32psarobeFixed in Version => 2.50MP6
2009-09-23 00:00anonymoussf_bug_id0 => 2864614
2009-09-29 14:12hgbotCheckin
2009-09-29 14:12hgbotNote Added: 0020477
2009-09-29 14:12hgbotStatusclosed => resolved
2009-09-29 14:12hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/2c5ea17a55e02517c582bf03e6cdd4970b7bd1ef [^] => http://code.openbravo.com/erp/devel/pi-pageddatagrid/rev/5308f2ed4b1ca43e1202ff89be1ac5acbbcc4d72 [^]
2009-09-29 14:14hgbotCheckin
2009-09-29 14:14hgbotNote Added: 0020493
2009-09-29 14:14hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi-pageddatagrid/rev/5308f2ed4b1ca43e1202ff89be1ac5acbbcc4d72 [^] => http://code.openbravo.com/erp/devel/pi-pageddatagrid/rev/2c5ea17a55e02517c582bf03e6cdd4970b7bd1ef [^]
2009-10-06 11:53psarobeStatusresolved => closed
2009-10-06 11:53psarobeNote Added: 0020773

Notes
(0019251)
rafaroda   
2009-08-28 12:17   
The business partner selector is suffering for the same issue.
1) Change business partner Millman to organization B.
2) Create a Sales Order in organization A.
3) Type "mill" and press enter key.
4) Selector remains open with Millman record displaying: WRONG

This is not happening in the product selector (but the behaviour is wrong anyway).
1) Change product Grand Beer to organization B.
2) Go to the lines of the previous Sales Order in organization A.
3) Type "bee" and press enter key.
4) Selector is automatically closed and Grand Beer is selected: WRONG
(0020102)
rafaroda   
2009-09-16 06:33   
Priority upgraded to Immediate since 2.50 MP6 freezing is happening on Friday 18/09.
(0020135)
hgbot   
2009-09-17 12:11   
Repository: erp/devel/pi
Changeset: 5308f2ed4b1ca43e1202ff89be1ac5acbbcc4d72
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Sep 17 12:11:29 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/5308f2ed4b1ca43e1202ff89be1ac5acbbcc4d72 [^]

fixed bug 0010418: Project selector inconsistent behavior with organization security

---
M src/org/openbravo/erpCommon/info/Project.java
---
(0020182)
sureshbabu   
2009-09-18 09:04   
Hi Alostale,

I changed the organization of Multiphase project (Riley)
Then i moved to sales order, created a new sales order by clicking new
Then i enter project key(Riley) in the project field and pressed enter
Project window opened without any record that's right but when i clicked the search button in the Project selector window, the project Riley appears which is wrong.
(0020260)
hgbot   
2009-09-22 11:11   
Repository: erp/devel/pi
Changeset: 2c5ea17a55e02517c582bf03e6cdd4970b7bd1ef
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Tue Sep 22 11:10:42 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/2c5ea17a55e02517c582bf03e6cdd4970b7bd1ef [^]

Fixed 10418: Fix organisation filter behavior in project selector
By not resetting ad_org_id filter when clicking search, but only
when entering the selector via the DEFAULT or KEY actions

---
M src/org/openbravo/erpCommon/info/Project.java
---
(0020266)
psarobe   
2009-09-22 12:32   
Tested working fine
(0020477)
hgbot   
2009-09-29 14:12   
Repository: erp/devel/pi-pageddatagrid
Changeset: 5308f2ed4b1ca43e1202ff89be1ac5acbbcc4d72
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Sep 17 12:11:29 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi-pageddatagrid/rev/5308f2ed4b1ca43e1202ff89be1ac5acbbcc4d72 [^]

fixed bug 0010418: Project selector inconsistent behavior with organization security

---
M src/org/openbravo/erpCommon/info/Project.java
---
(0020493)
hgbot   
2009-09-29 14:14   
Repository: erp/devel/pi-pageddatagrid
Changeset: 2c5ea17a55e02517c582bf03e6cdd4970b7bd1ef
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Tue Sep 22 11:10:42 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi-pageddatagrid/rev/2c5ea17a55e02517c582bf03e6cdd4970b7bd1ef [^]

Fixed 10418: Fix organisation filter behavior in project selector
By not resetting ad_org_id filter when clicking search, but only
when entering the selector via the DEFAULT or KEY actions

---
M src/org/openbravo/erpCommon/info/Project.java
---
(0020773)
psarobe   
2009-10-06 11:53   
Closed again because hudson has reopened without no reason