Traceback auditrail OCB 6.1

Bug #1286900 reported by Ana Juaristi Olalde
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Community Backports (Addons)
New
Undecided
Unassigned

Bug Description

  File "/opt/openerp/testing/nafsa/server/openerp/addons/base/ir/ir_attachment.py", line 40, in check
    cr.execute('SELECT DISTINCT res_model, res_id FROM ir_attachment WHERE id = ANY (%s)', (ids,))
  File "/opt/openerp/testing/nafsa/server/openerp/sql_db.py", line 152, in wrapper
    return f(self, *args, **kwargs)
  File "/opt/openerp/testing/nafsa/server/openerp/sql_db.py", line 212, in execute
    res = self._obj.execute(query, params)
ProgrammingError: can't adapt type 'dict'

Steps to reproduce:
1. install Auditrail module
2. Define one rule for model ir.attachment
3. Mark Action check box
4. Try to access any atachment on any object.
...

Note: If action check box is not activated, error do not happen.
Even if action check box is activated, it works for rules in other objects like Sale order or invoices. Traceback is only happening on case of model ir.attachment on rule.

I don't know if I need reporting this bug also in OpenERP official branches since it's happening on 6.1.
Pending on my side to test on 7.0 and trunk.
Thank you:
Ana

Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Hi, Ana, bug is still present on v7/trunk? If it's so, you better put also affects openobject-addons project.

Do you have a patch for the mentioned bug?

Regards.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.