server-tools icon indicating copy to clipboard operation
server-tools copied to clipboard

Audit Log: Influences credit note creation

Open jappi00 opened this issue 2 years ago • 3 comments

Auditlog

Describe the bug

When I using audit log to log changes on the account.move.line model. (Image) And creating a payment term which have some delayed payment goals I can't create an credit note. Bildschirm­foto 2023-02-22 um 22 38 35 Bildschirm­foto 2023-02-22 um 22 38 48

To Reproduce

14e: Configure the auditlog module like above, configure the payment term and create an invoice with this payment term. Confirm it, and try to create an credit note. You get the below error. Bildschirm­foto 2023-02-22 um 22 40 47

Expected behavior No Error

Additional context I have debugged the issue to this point where the update gets called: https://github.com/odoo/odoo/blob/14.0/addons/account/models/account_move.py#L1036

When I deactivate the rule everything works fine.

I'am very confused. I didn't expect that auditlog have such an impact on the code but I cannot explain why this happens.

jappi00 avatar Feb 22 '23 21:02 jappi00