[FIX] web: on SearchPopup creation concat build context even if we have initial_ids
authorMartin Trigaux <mat@openerp.com>
Tue, 11 Mar 2014 09:43:20 +0000 (10:43 +0100)
committerMartin Trigaux <mat@openerp.com>
Tue, 11 Mar 2014 09:43:20 +0000 (10:43 +0100)
commit1f50cab14241bff0fd4b65e6346af648e0e7c1b5
tree33650d65399d923fbe5dcca6375e80b5e37d70f8
parenta4c27d560d12762640e89a0ecf6f1cae13aceef4
parentc033e5a5351a070043131720faf8f8f7df669571
[FIX] web: on SearchPopup creation concat build context even if we have initial_ids

  On SearchPopupCreation, if we have initial_ids - 1st search_read() will be
  missing custom context defined on the field.

  1. defined view like this: <field name='my_many2one_field_id' context="{'test': 1}"/>
  2. in we expand the list of available item, name_search() has 'test' in context
  3. in we click on 'Search More', search_read() is missing 'test' in context
  4. if we change filter add/remove item, search_read() will have 'test' in context

  Step 3. is wrong, should also have 'test' in context

bzr revid: mat@openerp.com-20140311094320-qjc9alfm3icynghv