Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5465 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Tác giả

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.

Tác giả

Thanks for your comment Naresh

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 15
7380
0
thg 3 15
3960
1
thg 4 25
2034
0
thg 1 25
1588
1
thg 3 25
3456