Odoo Help


How to use audittrail

on 4/19/13, 8:34 AM 2,002 views

Hi All, anyone has an idea how to use audittrail, I made a test as below, but something wrong incurred:

Testing aim: find who is creating and deleting partner.

Step 1. I created a audit rule with object of partner - checked "log writes""log creates""log deletes""log action" and selected users Step 2. Created partner -> go back to audit log -> I can get audit log accordingly to show who is create a partner Step 3. Cancel partner -> I can not cancel partner anymore with a warning, seems a bug?

Hope my question is clear, thank you so much!!!!

Hi Brenda,

Naresh Soni (nch)
on 4/19/13, 8:44 AM

Yes. me again, I think i really need to trace some records...seems you are trying to answer something but only a hi..

on 4/19/13, 8:47 AM

hahahaha that was by mistake..well what warning do you get ? is it Integrity Error ? if yes then you need to first delete the references i.e where ever that partner is used in your database. Then only it will allow you to delete the partner record.

Naresh Soni (nch)
on 4/19/13, 9:11 AM

Thanks Naresh,no... never use this fresh partner before, in the test, i create a new partner and delete it afterwards quickly. Okay to create but forbid to delete...And warning said:AttributeError: 'Field name not found in browse_record(res.partner, 8534)'

on 4/19/13, 9:43 AM

Ok ya this is a bug and has been already reported:https://bugs.launchpad.net/openobject-addons/+bug/1093467 .The fix is also available https://code.launchpad.net/~openerp-dev/openobject-addons/7.0-opw-589931-rgo/+merge/156130 but it needs a few change so its in progress.

Naresh Soni (nch)
on 4/19/13, 10:29 AM

Thanks for your comment Naresh

on 4/22/13, 6:12 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 4/19/13, 8:34 AM
Seen: 2002 times
Last updated: 3/16/15, 8:10 AM