search view, domain attributes on m2o fields are ignored

Bug #1131853 reported by Antony Lesuisse (OpenERP)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Web Team

Bug Description

Accounting->Customers->Customer payments the search view has an element

<field name="journal_id" context="{'journal_id': self, 'set_visible':False}" domain="[('type','in',('bank','cash'))]"/>

The autocompletion mechanism uses name_search without passing the domain nor the context:

call_kw('name_search',(), {'context': {}, 'limit': 8, 'name': 'searchstring'})

Related branches

summary: - search view, domain attribute on m2o fields is ignored
+ search view, domain attributes on m2o fields are ignored
Changed in openerp-web:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
Revision history for this message
Antony Lesuisse (OpenERP) (al-openerp) wrote :

More simple way to reproduce Sales->Sales->Customers i added a domain on parent_id field:

 <field name="parent_id" domain="[('is_company','=',1)]" filter_domain="[('parent_id','child_of',[self])]"/>

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Should be fixed in branch 7.0 as of revision <email address hidden>

Changed in openerp-web:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.