Replace invoice payment function by One2One
In account_invoice
, invoice_payment
and invoice_payments
are added to account.move.line
. The first is a Function
field and the second is used to search on the Function
field.
But indeed as there is a unique constraint on line
of account.invoice-account.move.line
, we could use a single One2One
field.