← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 708467] Re: Act_window : Incomplete behavior

 

Confirming for GTK client and Web client, to implement the chosen
solution:

=> When a default value is provided for a m2o search field via a context default, eg:
        context = "{ 'search_default_product_id' :  active_id } 
=> ... Then the filtering that is applied by the client when the search view is submitted must be using the numeric ID and the "equal" (=) operator. (i.e an exact match)
=> When the value of the m2o search field is manually changed by the user:
=> ... Then the filtering that is applied by the client when the search view is submitted should be using again the default operator for that field (comes from "operator" attribute, and by default is "ilike").

Thanks!

** Changed in: openobject-client
   Importance: Undecided => Medium

** Changed in: openobject-client
       Status: New => Confirmed

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

** Changed in: openobject-client
     Assignee: (unassigned) => OpenERP sa GTK client R&D (openerp-dev-gtk)

-- 
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 Modules (addons):
  New
Status in OpenERP GTK Client:
  Confirmed
Status in OpenERP Web Client:
  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