openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #04318
[Bug 1286900] [NEW] Traceback auditrail OCB 6.1
Public bug reported:
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
** Affects: ocb-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Community Backports Team, which is subscribed to OpenERP Community
Backports (Addons).
https://bugs.launchpad.net/bugs/1286900
Title:
Traceback auditrail OCB 6.1
Status in OpenERP Community Backports (Addons):
New
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-addons/+bug/1286900/+subscriptions
Follow ups
References