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_qr_code_method

View 18.0
Inputs Method Outputs
  • payment_method_type
+ for payment_method in self:
+             payment_method.hide_qr_code_method = payment_method.payment_method_type != 'qr_code' or len(self.env['res.partner.bank'].get_available_qr_methods_in_sequence()) == 1
  • hide_qr_code_method

Back to entity