parameters: (self, stock_moves)
docstring: Compute the margin at the end of the session. This method should be called to compute the remaining lines margin
          containing a storable product with a fifo/avco cost method and then compute the order margin
docstring_summary: Compute the margin at the end of the session. This method should be called to compute the remaining lines margin
          containing a storable product with a fifo/avco cost method and then compute the order margin
docstring_tokens: Compute the margin at the end of the session . This method should be called to compute the remaining lines margin containing a storable product with a fifo / avco cost method and then compute the order margin
function: def _compute_total_cost_at_session_closing(self, stock_moves):
          """
          Compute the margin at the end of the session. This method should be called to compute the remaining lines margin
          containing a storable product with a fifo/avco cost method and then compute the order margin
          """
          for order in self:
              storable_fifo_avco_lines = order.lines.filtered(lambda l: l._is_product_storable_fifo_avco())
              storable_fifo_avco_lines._compute_total_cost(stock_moves)
function_tokens: def _compute_total_cost_at_session_closing ( self , stock_moves ) : for order in self : storable_fifo_avco_lines = order . lines . filtered ( lambda l : l . _is_product_storable_fifo_avco ( ) ) storable_fifo_avco_lines . _compute_total_cost ( stock_moves )