Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Point of Sale

Entity: pos.payment.method

Compute Method: _compute_available_payment_providers

View 20.0
Inputs Method Outputs
  • payment_method_type
+ for payment_method in self:
+             match payment_method.payment_method_type:
+                 case "cash_machine":
+                     payment_method.available_payment_providers = [selection[0] for selection in self._get_cash_machine_selection()]
+                 case "terminal":
+                     payment_method.available_payment_providers = [selection[0] for selection in self._get_terminal_provider_selection()]
+                 case "external_qr":
+                     payment_method.available_payment_providers = [selection[0] for selection in self._get_external_qr_provider_selection()]
+                 case _:
+                     payment_method.available_payment_providers = []
  • available_payment_providers

Back to entity