Payment Method

class odoo.addons.payment.models.payment_method.PaymentMethod[sorgente]
_deduplicate_by_code(report=None)[sorgente]

Sort and deduplicate payment methods by code, keeping the best-ranked match.

The payment methods are first sorted by display order (see _sort_by_display_order), then all but the first occurrence of each code are dropped.

Parametri

report (dict) – The report into which availability statuses are to be logged

Ritorna

The deduplicated payment methods

Tipo di ritorno

payment.method

_sort_by_display_order()[sorgente]

Sort payment methods by their display order.

The display order is: provider sequence > provider name > PM sequence > PM name.

Ritorna

The sorted payment methods

Tipo di ritorno

payment.method