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_statistics_for_session

Inputs Method Outputs
for config in self:
            session = config.session_ids.filtered(lambda s: s.state != 'closed')
            session_record = session[0] if session else None
            if not session_record or not session_record.exists():
                config.statistics_for_current_session = False
                continue
            config.statistics_for_current_session = config.get_statistics_for_session(session_record)

Back to entity