server-tools
server-tools copied to clipboard
Audit Log: Influences credit note creation
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.
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.
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.