server-tools
server-tools copied to clipboard
Tools for Odoo Administrators to improve some technical features on Odoo.
I am having a lot of problems when auditing is enabled in several third party modules. This little change skips all writes and save logs to odoo logging. It is...
Added the delete_from_identifiers method to PGSessionStore. This method allows bulk deletion of session records from the http_sessions table based on a list of session identifiers (sid). It is triggered from...
This was identified by running `base` module tests on an odoo:18 container with `auditlog` installed, yielding: ``` ERROR odoo odoo.addons.base.tests.test_display_name: FAIL: Subtest TestEveryModel.test_display_name_new_record [`_compute_display_name` doesn't work with new record (first...
Hello, I noticed that after commit c6aedd0, writing logs with full type is no longer working. Regards
In Odoo 19, has_group() reads a cached `_get_group_ids`() (from `all_group_ids`), so inside a constraint right after changing `group_ids` it can be stale and return the wrong result. So, I avoided...
Due to the introduction of the `ThrowAwayCache`, in full log mode when attempting to log a write, the reading of the '_new_' values effectively reads the '_old_' values because prior...
Looping over a large amount of session files with os.listdir caused memory issues. glob.iglob is a generator and as such more memory-efficient. Analogous to how [Odoo 16+](https://github.com/odoo/odoo/blob/5d75037d4f81d71a50394c3d390c420967766731/odoo/http.py#L953) does it
## Module auditlog (confirmed for at least v16) ## Describe the bug When trying to log a write call for a record for which a rule with full log mode...