Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] models: in onchange, false changes where detected in many2many …
…fields This was due to secondary fields loaded from database in 'onchange' mode. In that mode, the secondary fields were marked 'dirty', and therefore returned by the method `onchange`. The fix consists in loading those secondary fields in cache before processing the onchanges. This incidentally fixes a test on method `onchange`: in a one2many field, some dirty fields were unexpectedly returned in the result. This was due to those fields being loaded while processing onchanges.
- Loading branch information