(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
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
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
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)
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 )