Track Deleted Records

by
Odoo
v 13.0 Third Party 663
Download for v 13.0 Deploy on Odoo.sh
Lines of code 158
Technical Name deleted_records_info
LicenseAGPL-3
Websitehttp://www.aktivsoftware.com
Also available in version v 12.0 v 14.0 v 11.0
You bought this module and need support? Click here!
Lines of code 158
Technical Name deleted_records_info
LicenseAGPL-3
Websitehttp://www.aktivsoftware.com
Also available in version v 12.0 v 14.0 v 11.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.

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, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
Installed pyscreenshot==2.2, it doesn't work
by
Joshuah Rodery
on 8/3/20, 9:41 PM

I've ensured that the pyscreenshot==2.2 is installed as no specific version was requested in the app. However, like the other discuss and ratings reviewers mentioned it creates a failed on backend error and now the module can't be uninstalled.


Not Work
by
Manuel
on 6/29/20, 3:04 PM

pyscreenshot.loader.FailedBackendError:

Re: Not Work
by
Jainesh Shah
on 6/30/20, 12:29 AM Author

Can you please Install python package - sudo pip3 install pyscreenshot. As we have Mentioned in Index file in Pre requisites.


Cant uninstall module
by
Musinguzi Christian
on 7/8/20, 10:13 AM

See Error help please Odoo Server Error Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/http.py", line 656, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python3/dist-packages/odoo/http.py", line 314, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise raise value File "/usr/lib/python3/dist-packages/odoo/http.py", line 698, in dispatch result = self._call_function(**self.params) File "/usr/lib/python3/dist-packages/odoo/http.py", line 346, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 941, in __call__ return self.method(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 519, in response_wrap response = f(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 966, in call_button action = self._call_kw(model, method, args, {}) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 954, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 749, in call_kw return _call_kw_multi(method, model, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 736, in _call_kw_multi result = method(recs, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/base/wizard/base_module_uninstall.py", line 60, in action_uninstall return modules.button_immediate_uninstall() File "", line 2, in button_immediate_uninstall File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 74, in check_and_log return method(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 586, in button_immediate_uninstall return self._button_immediate_function(type(self).button_uninstall) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 561, in _button_immediate_function modules.registry.Registry.new(self._cr.dbname, update_module=True) File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 86, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 476, in load_modules Module.browse(modules_to_remove.values()).module_uninstall() File "", line 2, in module_uninstall File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 74, in check_and_log return method(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 461, in module_uninstall self.env['ir.model.data']._module_data_uninstall(modules_to_remove) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 1633, in _module_data_uninstall constraints._module_data_uninstall() File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 1037, in _module_data_uninstall self.unlink() File "/home/webcode/modules/deleted_records_info/models/base_model.py", line 26, in unlink screenshot = ImageGrab.grab() File "/usr/local/lib/python3.6/dist-packages/pyscreenshot/__init__.py", line 31, in grab return backend_grab(backend, bbox, childprocess) File "/usr/local/lib/python3.6/dist-packages/pyscreenshot/loader.py", line 147, in backend_grab return auto(bbox, childprocess) File "/usr/local/lib/python3.6/dist-packages/pyscreenshot/loader.py", line 127, in auto raise FailedBackendError(msg) pyscreenshot.err.FailedBackendError: All backends failed!

Re: Cant uninstall module
by
Jainesh Shah
on 7/9/20, 2:35 AM Author

Hello Musinguzi Christian, I tried to regenerate this traceback, Is it possible for you to share us your activity or is it possible for you to share with us the steps to reproduce this traceback. can you please also let us know if there is any other customised module in you database, If yes, then can you check this module in new database. If this issue still persists then let us know we will help you out. Thanks, Team Aktiv Software.