Ir al contenido
Menú
Se marcó esta pregunta
5101 Vistas

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

Publicaciones relacionadas Respuestas Vistas Actividad
1
mar 15
7035
0
mar 15
3602
1
abr 25
1360
0
ene 25
1245
1
mar 25
2916