odoo16中的 ‘ir.ui.view‘ object has no attribute ‘_render‘

odoo16中的 'ir.ui.view' object has no attribute '_render'

查了下odoo15的代码:

    def _render(self, values=None, engine='ir.qweb', minimal_qcontext=False):
        """ Render the template. If website is enabled on request, then extend rendering context with website values. """
        self._handle_visibility(do_raise=True)
        new_context = dict(self._context)
        if request and getattr(request, 'is_frontend', False):

            editable = request.website.is_publisher()
            translatable = editable and self._context.get('lang') != request.website.default_lang_id.code
            editable = not translatable and editable

            # in edit mode ir.ui.view will tag nodes
            if not translatable and not self.env.context.get('rendering_bundle'):
                if editable:
                    new_context = dict(s

猜你喜欢

转载自blog.csdn.net/fqfq123456/article/details/131861410