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.config

Compute Method: _compute_current_cash_register_balance

Inputs Method Outputs
for pos_config in self:
            cash_method = pos_config.payment_method_ids.filtered(lambda pm: pm.type == 'cash')
            if cash_method:
                balance = cash_method.journal_id.current_statement_balance
                pos_config.current_cash_register_balance = balance
            else:
                pos_config.current_cash_register_balance = 0

Back to entity