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

View 17.0
Inputs Method Outputs
  • type
- 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')
  • hide_use_payment_terminal

Back to entity