Skip to content
Snippets Groups Projects
Commit 97b00da9 authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] account: do not call action_invoice_paid


`action_invoice_paid` should be called when the computed field
`invoice_payment_state` is set. However, the recomputation doesn't go
through `create` or `write` (since the field is protected).

A workaround  is to call it at reconciliation. Indeed, an invoice can
only be paid when it is reconciled. For invoices with an amount of zero,
we call the method at posting.

closes odoo/odoo#44259

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 5f1f60c1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment