Track Deleted Records

by
Odoo

9.86

v 14.0 Third Party 4
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 158
Technical Name deleted_records_info
LicenseOPL-1
Websitehttp://www.aktivsoftware.com
Versions 16.0 14.0 15.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 158
Technical Name deleted_records_info
LicenseOPL-1
Websitehttp://www.aktivsoftware.com
Versions 16.0 14.0 15.0

Track Deleted Records

The primary purpose of this app is to see information of deleted records. So when user deletes any records then odoo will take a screenshot so admin user will know deleted records information in attachments.

Below listed are features of this module:

  • Admin users can see which records have been deleted and by whom

  • Message, Followers and Attechments table records will be not stored in deleted history.

  • If some records deleted from database that records will be not stored in delete history.

Prerequisites before Installation

Install python package - sudo pip3 install pyscreenshot.

Configurations

No Configurations are required.

Step-By-Step Guidelines

For better understanding here is the video of track deleted records. Here I display a demo of sale order table.

When the Records in the Deleted Records Form increase, User can easily delete this records by going to Actions -> Delete Records Upto menu.

The Records will be deleted which were created before the date which is entered in the form by user.

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
no sirve
by
sandro herrera muñoz
on 6/27/23, 2:18 PM

esto instalarlo te genera errores, no sirve

Re: no sirve
by
Jainesh Shah
on 6/28/23, 2:13 AM Author

Hello Sandro, 

Thank you for showing interest in our module.

As soon as I resolve this error, I will update the module on the app store.

Please reach us at odoo@aktivsoftware.com, if you have any further query.

Regards, 

Aktiv Software 


by
sandro herrera muñoz
on 6/30/23, 12:12 AM

se instalo como dice el modulo, ahora cobran x arreglar

Re:
by
Jainesh Shah
on 6/30/23, 6:02 AM Author

Hello Sandro , 

Can you please email us on odoo@aktivsoftware.com . 

Thanks 


este es el error, y no puedo desinstalar
by
sandro herrera muñoz
on 6/28/23, 1:49 PM

Error:
Odoo Server Error

Traceback (most recent call last):
File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/odoo/odoo-server/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/odoo/odoo-server/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/odoo-server/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo/odoo-server/odoo/http.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "/odoo/odoo-server/odoo/http.py", line 912, in __call__
return self.method(*args, **kw)
File "/odoo/odoo-server/odoo/http.py", line 531, in response_wrap
response = f(*args, **kw)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 1394, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 1382, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/odoo/odoo-server/odoo/api.py", line 399, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/odoo/odoo-server/odoo/api.py", line 386, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/odoo/odoo-server/odoo/addons/base/wizard/base_module_uninstall.py", line 59, in action_uninstall
return modules.button_immediate_uninstall()
File "", line 2, in button_immediate_uninstall
File "/odoo/odoo-server/odoo/addons/base/models/ir_module.py", line 74, in check_and_log
return method(self, *args, **kwargs)
File "/odoo/odoo-server/odoo/addons/base/models/ir_module.py", line 617, in button_immediate_uninstall
return self._button_immediate_function(type(self).button_uninstall)
File "/odoo/odoo-server/odoo/addons/base/models/ir_module.py", line 593, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/odoo/odoo-server/odoo/modules/registry.py", line 89, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/odoo/odoo-server/odoo/modules/loading.py", line 525, in load_modules
Module.browse(modules_to_remove.values()).module_uninstall()
File "", line 2, in module_uninstall
File "/odoo/odoo-server/odoo/addons/base/models/ir_module.py", line 74, in check_and_log
return method(self, *args, **kwargs)
File "/odoo/odoo-server/odoo/addons/base/models/ir_module.py", line 489, in module_uninstall
self.env['ir.model.data']._module_data_uninstall(modules_to_remove)
File "/odoo/odoo-server/odoo/addons/base/models/ir_model.py", line 2197, in _module_data_uninstall
constraints._module_data_uninstall()
File "/odoo/odoo-server/odoo/addons/base/models/ir_model.py", line 1533, in _module_data_uninstall
self.unlink()
File "/odoo/custom/web/deleted_records_info/models/base_model.py", line 25, in unlink
screenshot = ImageGrab.grab()
File "/usr/local/lib/python3.8/dist-packages/pyscreenshot/__init__.py", line 37, in grab
return backend_grab(backend, bbox, childprocess)
File "/usr/local/lib/python3.8/dist-packages/pyscreenshot/loader.py", line 171, in backend_grab
return auto(bbox, childprocess)
File "/usr/local/lib/python3.8/dist-packages/pyscreenshot/loader.py", line 151, in auto
raise FailedBackendError(msg)
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/odoo/odoo-server/odoo/http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/odoo/odoo-server/odoo/http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
pyscreenshot.err.FailedBackendError: All backends failed!

Re: este es el error, y no puedo desinstalar
by
Jainesh Shah
on 6/29/23, 1:36 AM Author

Hello Sandro, 

The problem occurred because you did not install the Python package correctly - sudo pip3 install pyscreenshot. 

In addition, we resolved the previous error. 

Thanks