Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Payment Engine
Entity: payment.provider
Compute Method: _compute_available_currency_ids
| Inputs | Method | Outputs |
|---|---|---|
|
|
- """ Compute the available currencies based on their support by the providers. + """Compute the available currencies based on their support by the providers. If the provider does not filter out any currency, the field is left empty for UX reasons. :return: None """ - all_currencies = self.env['res.currency'].with_context(active_test=False).search([]) + all_currencies = self.env["res.currency"].with_context(active_test=False).search([]) for provider in self: supported_currencies = provider._get_supported_currencies() if supported_currencies < all_currencies: # Some currencies have been filtered out. provider.available_currency_ids = supported_currencies else: provider.available_currency_ids = None |
|
