[FIX] models: in onchange(), do not send a field value if it has not changed
authorRaphael Collet <rco@openerp.com>
Wed, 10 Sep 2014 12:55:28 +0000 (14:55 +0200)
committerRaphael Collet <rco@openerp.com>
Thu, 11 Sep 2014 09:45:23 +0000 (11:45 +0200)
commit85533e184180dc31e33761148fe926a0b25259e2
tree79bea79ef992d6356c135364872bd5b3ada25fe4
parente948253b3a1706887a4bf4dbeb98583aa8b8f939
[FIX] models: in onchange(), do not send a field value if it has not changed

The method onchange() executes onchange methods in cascade.  Suppose onchange()
is called and a field F=1 in the form.  If an onchange method set F=2, that
value is put in the result variable.  If another onchange method set it back to
F=1, the binding F=2 must be removed from the result variable.

Fixes #2309
openerp/models.py