Hello every body, I have a question about odoo logs, it happens that I am trying to identify who was the user that deletes a record, especifically a Purchase order, but as I understand, odoo is just saving logs of existing objects, in the moment that an object is deleted, odoo removes all logs of that object. So, odoo are not saving logs of deleted objects, I mean the data of who deleted that Purchase order and when? Can some one help me?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
App for Track Deleted Records:
https://apps.odoo.com/apps/modules/13.0/deleted_records_info/
App for User Activity Log:
https://apps.odoo.com/apps/modules/13.0/user_recent_log/
Thank you.
Hello, I a trying to use deleted record module (Track Deleted Records), but it shows me an error when I try to delete a record. I am using Odoo 12, so I am trying the 12 version:
Error:
Odoo Server Error
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\tools\pycompat.py", line 87, in reraise
raise value
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\service\model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 941, in __call__
return self.method(*args, **kw)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 519, in response_wrap
response = f(*args, **kw)
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\web\controllers\main.py", line 962, in call_kw
return self._call_kw(model, method, args, kwargs)
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\web\controllers\main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 759, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 746, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\purchase\models\purchase.py", line 167, in unlink
return super(PurchaseOrder, self).unlink()
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\mail\models\mail_thread.py", line 340, in unlink
res = super(MailThread, self).unlink()
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\mail\models\mail_activity.py", line 594, in unlink
result = super(MailActivityMixin, self).unlink()
File "d:\odoo\vonweise_addons\deleted_records_info\models\base_model.py", line 26, in unlink
screenshot = ImageGrab.grab()
File "C:\Program Files (x86)\Odoo 12.0\python\lib\site-packages\pyscreenshot\__init__.py", line 43, in grab
return _grab(childprocess=childprocess, backend=backend, bbox=bbox)
File "C:\Program Files (x86)\Odoo 12.0\python\lib\site-packages\pyscreenshot\__init__.py", line 29, in _grab
return childprocess_grab(_grab_simple, backend, bbox)
File "C:\Program Files (x86)\Odoo 12.0\python\lib\site-packages\pyscreenshot\childproc.py", line 34, in childprocess_grab
return childprocess_grab_popen(backend, bbox)
File "C:\Program Files (x86)\Odoo 12.0\python\lib\site-packages\pyscreenshot\childproc.py", line 54, in childprocess_grab_popen
raise FailedBackendError(p)
pyscreenshot.loader.FailedBackendError: <EasyProcess cmd_param=['C:\\Program Files (x86)\\Odoo 12.0\\python\\python.exe', '-m', 'pyscreenshot.cli.grab_to_file', 'C:\\Windows\\TEMP\\pyscreenshotq21ew838\\screenshot.png', '0', '0', '0', '0', '--backend', ''] cmd=['C:\\Program Files (x86)\\Odoo 12.0\\python\\python.exe', '-m', 'pyscreenshot.cli.grab_to_file', 'C:\\Windows\\TEMP\\pyscreenshotq21ew838\\screenshot.png', '0', '0', '0', '0', '--backend', ''] oserror=None return_code=1 stdout="" stderr="Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0\python\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Program Files (x86)\Odoo 12.0\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files (x86)\Odoo 12.0\python\lib\site-packages\pyscreenshot\cli\grab_to_file.py", line 8, in <module>
def main(filename, x1, y1, x2, y2, backend=""):
File "C:\Program Files (x86)\Odoo 12.0\python\lib\site-packages\entrypoint2\__init__.py", line 440, in entrypoint
return func(**kwargs)
File "C:\Program Files (x86)\Odoo 12.0\python\lib\site-packages\pyscreenshot\cli\grab_to_file.py", line 28, in main
im = pyscreenshot.grab(bbox=bbox, childprocess=False, backend=backend)
File "C:\Program Files (x86)\Odoo 12.0\python\lib\site-packages\pyscreenshot\__init__.py", line 43, in grab
return _grab(childprocess=childprocess, backend=backend, bbox=bbox)
File "C:\Program Files (x86)\Odoo 12.0\python\lib\site-packages\pyscreenshot\__init__.py", line 31, in _grab
return _grab_simple(backend, bbox, filename)
File "C:\Program Files (x86)\Odoo 12.0\python\lib\site-packages\pyscreenshot\__init__.py", line 17, in _grab_simple
return backend_obj.grab(bbox)
File "C:\Program Files (x86)\Odoo 12.0\python\lib\site-packages\pyscreenshot\plugins\pil.py", line 17, in grab
return self.ImageGrab.grab(bbox)
File "C:\Program Files (x86)\Odoo 12.0\python\lib\site-packages\PIL\ImageGrab.py", line 41, in grab
size, data = grabber()
OSError: screen grab failed" timeout_happened=False>
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Dec 23
|
734 | ||
|
1
Jul 23
|
1327 | ||
|
0
May 23
|
1492 | ||
|
3
Apr 23
|
18820 | ||
|
1
Nov 22
|
861 |