← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 708467] Re: Act_window : Incomplete behavior

 

@Steffi and Michael: 
As I understand that you expect the search fields to perform "Exact match" of values instead of "like" match by default, and only do "wildcard matches" only when you ask the system to do it. 
However this is not the default behavior of OpenERP for many reasons, and this has not changed in v6, there is not "philosophical" difference. It may appear to you that it changed, but this is only because of other changes related to search views and the way "related links" are followed. If you do a normal search on the product name in the regular products list, you will see that the search/match behavior is identical in v5 and v6.
One of the reasons for this default is that it is much more frequent for users to search for a non-exact match than an exact match (think of Google), and I don't think we are going to change this anytime soon. We could however provide a more user-friendly mechanism for searching exact matches, like quoting the terms, etc.

Incidentally, OpenERP allows you to customize your views and assign the
"=" operator to your search view fields if you like, but the default is
the fuzzy operator "ilike".

Now, as this is a much vaster topic and definitely not a bug, please
let's concentrate on the issue at hand: exact match searches when
following related links in side-bar. I'll do that in a separate comment.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/708467

Title:
  Act_window : Incomplete behavior

Status in OpenERP Server:
  Confirmed

Bug description:
  There has been a problem observed on act_windows(links or shortcuts).

  The problem is, act_windows do not respect domain and they work
  according to context set on search panel,but this context can lead to
  a completely wrong result.

  Example:
  Install stock module(With demo data).
  Go to Sales/Products , edit the code of CPU1 to be CPU.
  Click on Stock Moves(act_windows), you will see that the the purpose of link is not served at all. (result includes records for cpu2,cpu3) as well.

  
  Second problem, clicking NEW should set default product_id on new Stock.move,which doesn't happen anymore.

  Overall,
  1. If domain is not supposed to beset, there should be a special key which loads FILTERED records on links.
  2. 'default_FIELD':active_id or kind of relevant entry should appear in context.

  Thanks.





References