odoo/odoo — pull request #4271 by aba-odoo (2014-12-16 13:19:04+00:00)
Title: [FIX] audittrail : Avoid recursion when two partners are in each other's...

... many2many list, we need to pass the current resource_id in args to get_data so that we can check for it and skip adding it in data dictionary.

Issue can be reproduced with below steps if we have audittrail module installed and subscribed to res.partner log for write.

Steps:
1) Add an m2m field "partner_ids" to "res.partner" object,
2) Create two partners "Partner A" and "Partner B",
3) Add "Partner B" to Partner A's m2m list,
4) Add "Partner A" to Partner B's m2m list and try to save it,

It results in "maximum recursion death" traceback.

The branch fixes this issue.