diff options
| author | Olivier Dony <odo@openerp.com> | 2013-04-15 19:17:32 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2013-04-15 19:17:32 +0200 |
| commit | 8efd16f25a07f142dc78e509cd3172124cd15591 (patch) | |
| tree | e11a7f6c4702c18eb33d5eb0abf58f849f4bed9f /addons/plugin/plugin_handler.py | |
| parent | ef062c086b6bc1824469706d3d8784c105eb2ace (diff) | |
[FIX] res.partner, orm._check_recursion: prevent recursive partner structures + fix false positives in check_recursion()
- res.partner must prevent creating loops in partner
hierarchies, and this can be done easily with an
extra _constraint using the ORM's builtin _check_recursion
- _check_recursion's implementation incorrectly
assumed that the provided 'ids' were unrelated
(not part of a common hierarchy).
- add tests for _check_recursion via extra
tests on res.partner structure
(explains why both patches are in the same
commit)
bzr revid: odo@openerp.com-20130415171732-aj3j2e2mycvzf4kp
Diffstat (limited to 'addons/plugin/plugin_handler.py')
0 files changed, 0 insertions, 0 deletions
