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

Compute Method: _compute_is_invoiced

View 20.0
Inputs Method Outputs
  • account_move
  • session_id
  • session_id.move_ids
  • is_singly_invoiced
+ for order in self:
+             order_move = order.account_move
+             session_moves = order.session_id.move_ids
+             order.is_singly_invoiced = order_move and order_move not in session_moves
+             order.is_globally_invoiced = order_move and order_move in session_moves
+             order.invoice_status = 'invoiced' if order.is_singly_invoiced else 'to_invoice'
  • is_singly_invoiced
  • is_globally_invoiced
  • invoice_status

Back to entity