Odoo Help


Uncaught TypeError: Type is not a constructor

Alejandro Concepción
on 7/12/16, 4:53 PM 3,789 views

I am developing in version 8 Odoo a module for tax annexes of Panama. In the report I am trying to do I want to include a search type view, but when you add to that view the <filter /> gives me the following error: Uncaught TypeError: Type is not a constructor

The view code is as follows:

<?xml version="1.0" encoding="UTF-8"?>



<!-- Vista Busqueda-->

<record model="ir.ui.view" id="view_report_anexos_search">

<field name="name">report.anexos.search</field>

<field name="model">report.anexos</field>

<field name="arch" type="xml">

<search string="Reporte de Anexos DGI Panamá">

<filter name="filteranexo94" string="Filtro Anexo 94" domain="[('anexo', 'ilike', 'A94')]"/>

<field name="tipo_persona"/>

<field name="ruc"/>

<field name="dv"/>

<field name="nombre_proveedor"/>

<field name="codigo_tipo_pago"/>

<field name="concepto"/>

<field name="montos"/>

<field name="date_invoice"/>

<field name="anexo" string="Anexo" />

<field name="name" domain_filter="['|', ('name','ilike',self),('user_id','ilike',self)]"/>

<field name="periodo_fiscal"/>




<!-- Acciones <field name="search_view_id" ref="view_report_anexos_search"></field>-->

<record id="report_anexos_action" model="ir.actions.act_window">

<field name="name">Reporte de Anexos</field>

<field name="res_model">report.anexos</field>

<field name="view_type">form</field>

<field name="view_mode">tree,form</field>

<field name="context">{'search_default_filteranexo94':1}</field>


<!-- Menúes -->

<menuitem id="report_anexos_menu_action"


name="Reporte de Anexos"





On 7/13/16, 1:33 AM


<field name="name" domain_filter="['|', ('name','ilike',self),('user_id','ilike',self)]"/>

change domain_filter to filter_domain

<field name="name" filter_domain="['|', ('name','ilike',self),('user_id', 'child_of', self)]"/>

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

Question tools

1 follower(s)


Asked: 7/12/16, 4:53 PM
Seen: 3789 times
Last updated: 7/13/16, 1:33 AM