Skip to Content
Menú
This question has been flagged
5105 Vistes

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!!!!

Avatar
Descartar
Autor

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

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.

Autor

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)'

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.

Autor

Thanks for your comment Naresh

Related Posts Respostes Vistes Activitat
1
de març 15
7039
0
de març 15
3603
1
d’abr. 25
1367
0
de gen. 25
1247
1
de març 25
2921