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

Compute Method: _compute_cash_control

View 19.0
Inputs Method Outputs
  • cash_journal_id
  • config_id
  • config_id.cash_control
- for session in self:
-             if session.cash_journal_id:
-                 session.cash_control = session.config_id.cash_control
-             else:
-                 session.cash_control = False
  • cash_control

Back to entity