Skip to content

[19.0][FIX] Auditlog: Maximum recursion error when creating new accounts#3646

Open
hi-oerp wants to merge 1 commit into
OCA:19.0from
oerp-canada:19.0-fix-auditlog
Open

[19.0][FIX] Auditlog: Maximum recursion error when creating new accounts#3646
hi-oerp wants to merge 1 commit into
OCA:19.0from
oerp-canada:19.0-fix-auditlog

Conversation

@hi-oerp

@hi-oerp hi-oerp commented Jun 9, 2026

Copy link
Copy Markdown

Module

Auditlog

Describe the bug

Maximum recursion error when creating new accounts

To Reproduce

Create a new rule for the account.account module
Check "Log Creates", "Log Writes" and "Full Log" in the new rule

Steps to reproduce the behavior:

Go to Accounting -> Configuration -> Chart of Account
Create a new account with code
Foreve loading and "RecursionError: maximum recursion depth exceeded"

Expected behavior
It should be able to save

Additional context
In Odoo, there are 2 methods in the AccountAccount class called _compute_code and _inverse_code.
Auditlog module keeps triggering these 2 methods and causing an infinite loop.

@hi-oerp hi-oerp force-pushed the 19.0-fix-auditlog branch from 9f5f4c1 to 171695d Compare June 10, 2026 13:43
@hi-oerp

hi-oerp commented Jun 17, 2026

Copy link
Copy Markdown
Author

Good morning.

@sebalix @StefanRijnhart @pedrobaeza @hbrunn Could you please help me validate this so we can proceed with the approval and merge?

Thanks!

@StefanRijnhart StefanRijnhart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Can you add a reproducing test to https://github.com/OCA/server-tools/tree/19.0/test_auditlog?

@StefanRijnhart

Copy link
Copy Markdown
Member

If you check the failing tests, it looks like your changes prevent some other expected logs to be created, so it's not all well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants