I want to port audit trail for version8 but i m not sure it is possible or not
Anyone has idea how to do it or any workaround to achieve this please share
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I want to port audit trail for version8 but i m not sure it is possible or not
Anyone has idea how to do it or any workaround to achieve this please share
After my initial testing and look over the code, it's clear that object_proxy is gone (as been pointed out in another answer's comments), and the functions in the service model are seemingly never called. Sad to see it go. (We had an event system built around the concept. Pretty handy.) The web addon module was the next suspect, and it seems that the web server is executing on the models directly, so you have (at least) 2 options.
Both methods have their pros and cons. I leave the implementation details to the reader's imagination.
Actually it is workaround, sure you can modify audit trail module make it work in V8...
if you already done this please reply how to do it coz due to change in osv & orm you can't use audit_trail coz they removed object_proxy service from orm in v8
True they have removed, object_proxy... So what you do is... In your auditTrail module, rewrite the methods [_wrap_create, _wrap_write, _wrap_unlink]... try to incorporate these methods definition with V7's definition... As I told it is bit workaround
And one more thing, I have done porting of AuditTrail in V8 (aplha version) but not in Odoo 8, so not sure of it in this version
Okay Thanks :)
i will try it in latest
i tried it in latest odoo8 not working, can you please send me your code for v8(alpha version) ?
Hi Deep, Can you please help me in the same exactly where I have to overwrite these wrap functions? I am using following python file : http://bazaar.launchpad.net/~openerp-community/openerp-extra/8.0-auditrail/view/head:/audittrail/audittrail.py