I always use logging to debug my Odoo modules. add this to the beginning of your class
import logging _logger = _logger = logging.getLogger(__name__)
then when you want the values ββto be logged in the Odoo log, you could use.
_logger.error(yourvariableormessagehere)
or
_logger.warning(yourvariableormessagehere)
Using the standard Ubuntu terminal will result in error messages and warnings due to this color. Honestly, I do not know about other OS terminals.
source share