[FIX] correctly expand many2ones in autocompletion
authorGéry Debongnie <ged@odoo.com>
Thu, 18 Sep 2014 09:03:18 +0000 (11:03 +0200)
committerGéry Debongnie <ged@odoo.com>
Thu, 18 Sep 2014 09:04:01 +0000 (11:04 +0200)
commite6a2d222d6e2605ce360febe5d535511444421eb
treec501b9150a94a2e390b5b4e368ba1ecf26f11375
parent8d773dcd237ebd3d2a0972b687ed1df40807e29d
[FIX] correctly expand many2ones in autocompletion

The ManyToOneField widget evaluated the domain before doing a name_search,
but the domain should not be evaluated client side, because it can only
be static at that point. It caused crash in autocompletion because
some variables could not be found in the context (see stage_id in
project.task for example)
addons/web/static/src/js/search.js