Odoo Help

2 Answers

Ray Carnes

--Ray Carnes--
| 4 2 6
Highland, United States
--Ray Carnes--

Business Analyst - Custom Projects


Ray Carnes
2/22/19, 2:51 PM

You need to import the logger:

import logging
_logger = logging.getLogger(__name__)

Then something like this:

        # add logging
        stock_moves = self.mapped('move_lines')
        for stock_move in stock_moves:

I added these lines to the start of the action_assign method of the stock.picking model, which runs when you click CHECK AVAILABILITY.

Output for Chic/OUT/00002 using the demo database:

Ask a Question
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now