diff options
| author | Olivier Dony <odo@openerp.com> | 2013-04-15 20:11:08 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2013-04-15 20:11:08 +0200 |
| commit | 8d03cf7740fcf973d00c523461323f7e7b257e88 (patch) | |
| tree | f7198333e457fb8aa70e3ea7cb3f81e4cfeba904 /addons/plugin/plugin_handler.py | |
| parent | 0110522b68191ed7ab5c44e2714e3aac011d145e (diff) | |
| parent | 8efd16f25a07f142dc78e509cd3172124cd15591 (diff) | |
[MERGE] 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-20130415181108-b2ytpuxflr8srpqf
Diffstat (limited to 'addons/plugin/plugin_handler.py')
0 files changed, 0 insertions, 0 deletions
