This question has been flagged
1 Reply
149 Views

Testing odoo.addons.base.models.ir_ui_view: Using active_id, active_ids and active_model in expressions is deprecated, found active_id 

_logger.warning("Using active_id, active_ids and active_model in expressions is deprecated, found %s", name)

how stop this 

warning


Avatar
Discard
Best Answer

Hi Zakariya Mahmoud,

Try to use this,

import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning, module="odoo.addons.base.models.ir_ui_view")
_logger.warning("Using active_id, active_ids, and active_model in expressions is deprecated, found %s", name)

Try this

Thanks
Avatar
Discard