Odoo Help

Welcome!

This community 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.

1

How to use audittrail

By
Brenda.li
on 4/19/13, 8:34 AM 1,449 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..

Brenda.li
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)'

Brenda.li
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

Brenda.li
on 4/22/13, 6:12 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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