Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Base

Entity: ir.ui.view

Compute Method: _compute_warning_info

Inputs Method Outputs
for view in self:
            view.warning_info = ''
            try:
                if view.inherit_id:
                    view_arch = etree.fromstring(view.arch)
                    view._valid_inheritance(view_arch)
                combined_arch = view._get_combined_arch()
                if view.type != 'qweb':
                    view._postprocess_view(combined_arch, view.model, is_compute_warning_info=True)
            except (etree.ParseError, ValueError, TypeError) as e:
                # Note: lxml < 5.0 raises ValueError; lxml 5.0+ / libxml2 2.12+ raises TypeError
                view.warning_info = str(e)

Back to entity