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

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

Back to entity