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_hide_use_payment_terminal
| Inputs | Method | Outputs |
|---|---|---|
|
- no_terminals = not bool(self._fields['use_payment_terminal'].selection(self)) - for payment_method in self: - payment_method.hide_use_payment_terminal = no_terminals or payment_method.type in ('cash', 'pay_later') or payment_method.payment_method_type != 'terminal' |
|
