Files
dn20/accountant/models/account_move.py
2026-11-08 17:43:44 +08:00

10 lines
228 B
Python

from odoo import models
class AccountMove(models.Model):
_inherit = 'account.move'
def _get_invoice_in_payment_state(self):
# OVERRIDE to enable the 'in_payment' state on invoices.
return 'in_payment'