summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2013-01-24 15:40:18 +0100
committerXavier Morel <xmo@openerp.com>2013-01-24 15:40:18 +0100
commite761ab7454645037e3c2be8c8337ecd3dae33786 (patch)
treea4a8cff544d463782a4b9da9f913e0c31b612f07 /addons/analytic_user_function/analytic_user_function.py
parent611ff620ce4d3d580872285e93cc428f4a5646dd (diff)
[FIX] domain returned by onchange
The "new" form engine performs a bunch of conversions on the form arch from json to xml to text to json again (or something), thus the ``node`` attribute on form fields might be json but it's got no more relation to the form's own arch (and the fields defined therein). Meanwhile the domains processing for onchange recursively traversed the *form*'s arch trying to find a node matching the key it had to set its @domain to what it was given. It long predates the "new" form engine, and since it alters the *original* arch not a copy the "new" form engine broke it. And since that's untested, it's been broken for a bunch of months (probably). Fix by looking up the field according to the domain key (in form.fields), and setting the domain in the node of the field, rather than the node of the form's arch. lp bug: https://launchpad.net/bugs/1088447 fixed bzr revid: xmo@openerp.com-20130124144018-0g3sl2nej2aj6syp
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function.py')
0 files changed, 0 insertions, 0 deletions