odoo/addons/audittrail
Denis Ledoux e1a17b433d [FIX] audittrail: prevent loop between models having *2m between each other
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
2016-04-19 16:56:20 +02:00
..
i18n [I18N] Update translation terms from Transifex 2016-04-01 00:28:28 +02:00
security [IMP] improvements during code review 2012-06-28 14:18:20 +02:00
wizard [IMP] use the openerp namespace. 2012-12-06 15:56:32 +01:00
__init__.py [FIX] Change the year of the copyright 2010-01-12 10:18:39 +01:00
__openerp__.py [IMP] emoving bad code, no invitation system on events 2012-09-26 14:16:27 +02:00
audittrail.py [FIX] audittrail: prevent loop between models having *2m between each other 2016-04-19 16:56:20 +02:00
audittrail_demo.xml [IMP]remove tabs and add spaces instead of them 2012-06-28 12:10:05 +05:30
audittrail_view.xml [FIX]audittrail:can not open form view 2012-11-07 16:45:54 +05:30