← Back to team overview

openerp-india team mailing list archive

[Bug 1078689] Re: audittrail: bad performance and infinite recursion

 

** Changed in: therp-backports
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1078689

Title:
  audittrail: bad performance and infinite recursion

Status in OpenERP Addons (modules):
  New
Status in Therp Backports:
  Fix Released

Bug description:
  If you have an unfortunate combination of audit rules, you can get
  really bad performance or infinite recursion while audittrail gathers
  the data structures.

  How to reproduce:
  1. Add a custom one2many field on res.partner.category on res.partner so that you can view which partners are in the category
  2. Create an audit rule on res.partner.category, method 'write'.
  3. Create an audit rule on res.partner, method 'write'.
  4. Create partner A and category A. Assign category A to partner A.
  5. Change the name of partner A.

  Result:
  RuntimeError: maximum recursion depth exceeded

  Apart from this, we get very bad performance even with finite
  recursion on certain combinations of rules (more that 60 secords per
  write on some models).

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1078689/+subscriptions


References