e1a17b433d
When setting rules on models having o2m/m2m relationship between each other e.g. - `res.partner`: o2m `sale_order_ids` to `sale.order` - `sale.order` o2m `message_follower_ids` to `res.partner` an infinite loop could occur if records of these models referenced records of the other models in their o2m relationships e.g. - `res.partner` ID 68: `sale.order` ID 9 in its `sale_order_ids` - `sale.order` ID 9: `res.partner` ID 68 in its `message_partner_ids` This revision solves this use case, by passing the already treated records in the context and checking that the records haven't yet be treated before making the recursive call. This revision makes sure to not break the API of methods `get_data_context` and `prepare_audittrail_log_line` (a new parameter had to be introduced for the above purpose) opw-670904 |
||
---|---|---|
.. | ||
i18n | ||
security | ||
wizard | ||
__init__.py | ||
__openerp__.py | ||
audittrail.py | ||
audittrail_demo.xml | ||
audittrail_view.xml |