← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 535036] Re: Search view not shown if only one record in list

 

** Changed in: openobject-client
    Milestone: None => 6.0

** Changed in: openobject-client
       Status: New => Fix Released

-- 
Search view not shown if only one record in list
https://bugs.launchpad.net/bugs/535036
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.

Status in OpenObject GTK Client: Fix Released

Bug description:
If you select the search view from a new record and there is exactly 1 available item in the list you want search, this item is directly selected. In many cases this is what you want and this speeds up the selection. However, if this is not the correct item and you want to add a new item, you cannot do this directly and need to go explicitly to another menu entry to achieve this.

To illustrate this problem, do the following:

Create an empty database with a minimal configuration.

Go to "Partners->Configuration->Partner Functions".
Remove all existing partner functions (if any).

Go to "Partners->Partners->New Partner".
Enter a partner name "aa" and select the search icon after the "Function" field. A pop up window appears.

Select new and create a new partner function, call it "salesman".
Save the partner entry.

Create a second partner by selecting "New".
Enter a partner name "bb" and select the search icon after the "Function" field. The "salesman" entry appears directly.

If you want to define a new partner function you cannot do it directly. You need to go explicitly to the "Partners->Configuration->Partner Functions" menu to achieve this.

If you have done this, there are two partner function defined (e.g. you've added "secretary".
No if you save the partner and then create a third partner (call it "cc") you will get the popup window when you try to search the partner function through the icon behind the function field. This is correct.

I would expect a consistent behavior for the case where only one entry exists. In this case, the popup window should appear and the user should have the possibility to either validate or create a new entry.

The behavior in the web client is correct and forces the popup window to appear.
T