The many2one lookup widget ignores domain for autosearch

Bug #670899 reported by James Jesudason
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical OpenERP
High
ksh (Axelor)
Odoo Web Client
Medium
OpenERP R&D Web Team

Bug Description

When using a many2one field that has a domain applied, the pop-up window correctly uses the domain (when the magnifying glass icon is clicked). However, the web client has an auto-search feature that displays a dropdown list of values when a user types in just a few characters and pauses. The auto-search lookup ignores the domain on the field and displays all records that characters that match.

This means that users can accidently select values in the many2one list that they should not be allowed to do. This problem does not occur in the GTK client.

bzr trunk revno: 3800

Related branches

James Jesudason (jamesj)
Changed in canonical-openerp:
status: New → Confirmed
importance: Undecided → High
Changed in openobject-client-web:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → OpenERP SA's Web Client R&D (openerp-dev-web)
Revision history for this message
ksh (Axelor) (ksh-axelor) wrote :

Hello,
   Hereby attaching patch for the bug,
   @sma Please test this code once again before committing to branch.

Changed in canonical-openerp:
assignee: nobody → ksh (Axelor) (ksh-axelor)
Revision history for this message
ksh (Axelor) (ksh-axelor) wrote :

Hello,
   Hereby attaching patch for the bug,
   @sma Please test this code once again before committing to branch.

Revision history for this message
ksh (Axelor) (ksh-axelor) wrote :

Hello,
      Attached is revised patch, with the improvement that domain is evaluated only once in one cycle of drop-down list.

Revision history for this message
Sananaz (Open ERP) (sma-tiny) wrote :

Hello James Jesudason,

Its fixed in trunk web-client with the revision 4040. Please update your code.

Thanks.

Changed in openobject-client-web:
status: Confirmed → Fix Released
James Jesudason (jamesj)
Changed in canonical-openerp:
status: Confirmed → Fix Committed
James Jesudason (jamesj)
Changed in canonical-openerp:
status: Fix Committed → Fix Released
milestone: none → timesheets-prod
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions