Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
361 Prikazi

What version control is there - if someone deletes all our inventory accidentally what happens? Can we retrace our steps and see what happened?

Avatar
Opusti
Best Answer

Hi


Odoo does not have built-in version control like Git for data, so deleted records (like inventory) cannot be undone directly.


Most deletion actions are not tracked visibly in the chatter or log notes, unless custom logging or audit modules are used.


You can limit deletion risks by restricting user access rights—remove delete permissions for sensitive models like stock, products, or inventory adjustments.


The OCA auditlog module can be installed to track create, update, and delete actions on specified models, which helps in tracing what happened.


If you're using Odoo.sh, it provides automatic daily backups and you can restore to a previous point in time if large-scale deletion occurs.


Self-hosted users should regularly schedule and verify PostgreSQL database backups to enable recovery in case of data loss.


PostgreSQL database logs (with proper logging configuration) may help advanced users trace who deleted what and when.


As a preventive measure, it's good practice to enable audit tools, use backups, and train users to avoid risky operations on critical data.


Hope it helps.

Avatar
Opusti
Avtor

Many thanks

Best Answer

Hi,

Odoo does not have built-in version control like Git for database records. Therefore, once a record (such as an inventory adjustment or stock record) is deleted, it cannot be recovered unless you have a database backup.

Also, Odoo does not log deletions in the chatter or log notes by default. If tracking deletions is critical for your workflow, consider using a custom logging module or installing an audit trail module (like auditlog or odoo-audit).

To reduce risks, it is recommended to:

  • Restrict delete access rights for sensitive models like stock, product, and inventory adjustments.
  • Regularly back up your database.
  • Use developer or admin mode cautiously.

This can help maintain data integrity and prevent accidental loss.

Hope this helps!

Avatar
Opusti
Avtor

Many thanks

Related Posts Odgovori Prikazi Aktivnost
2
sep. 20
3603
1
jun. 23
4273
1
apr. 24
751