Odoo Help


i have this xml error in the time i have not this code!!!

on 5/1/14, 10:07 AM 934 views

this is the error !! any reponse please

attrs['selection'] = relation._name_search(cr, user, '', dom, context=search_context, limit=None, name_get_uid=1) AttributeError: 'NoneType' object has no attribute '_name_search' 2014-05-01 10:51:54,340 8443 ERROR base openerp.tools.convert: Parse error in /opt/openerp/v7/modules-openerp/event/report/report_event_registration_view.xml:45:

<record model="ir.ui.view" id="view_report_event_registration_search">
            <field name="name">report.event.registration.search</field>
            <field name="model">report.event.registration</field>
            <field name="arch" type="xml">
                <search string="Event on Registration">
                    <filter icon="terp-document-new" string="New" domain="[('event_state','=','draft')]" help="Events which are in New state"/>
                    <filter icon="terp-check" string="Confirm" domain="[('event_state','=','confirm')]" help="Events which are in confirm state"/>
                    <filter icon="terp-personal" string="My Events" help="My Events" domain="[('user_id','=',uid)]"/>
                    <field name="event_id" string="Event"/>
                    <field name="user_id"/>
                    <group expand="0" string="Extended Filters...">
                        <field name="event_type" widget="selection"/>
                        <field name="event_date"/>
                    <group expand="1" string="Group By...">
                        <filter string="Participant / Contact" icon="terp-personal" context="{'group_by':'name_registration'}" help="Registration contact"/>
                        <filter string="Register" icon="terp-personal" context="{'group_by':'user_id_registration'}" help="Registration contact" groups="base.group_no_one"/>
                        <filter string="Speaker" name="speaker" icon="terp-personal+" context="{'group_by': 'speaker_id'}" groups="base.group_no_one"/>
                        <filter string="Event Responsible" name="user_id" icon="terp-personal" context="{'group_by': 'user_id'}"/>
                        <filter string="Event" name="event" icon="terp-crm" context="{'group_by':'event_id', 'max_reg_event_visible':0}"/>
                        <filter string="Event Type" icon="terp-crm" context="{'group_by':'event_type'}"/>
                        <filter string="Event State" icon="terp-stock_effects-object-colorize" context="{'group_by':'event_state'}"/>
                        <filter string="Registration State" icon="terp-stock_effects-object-colorize" context="{'group_by':'registration_state'}"/>
                        <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
                        <filter string="Day" icon="terp-go-month" domain="[]" context="{'group_by':'event_date'}" help="Event Beginning Date"/>
                        <filter string="Month" icon="terp-go-month" domain="[]" context="{'group_by':'month'}" help="Event Beginning Date"/>
                        <filter string="Year" icon="terp-go-year" domain="[]" context="{'group_by':'year'}" help="Event Beginning Date"/>
                    <group expand="0" string="Display">
                        <filter icon="terp-camera_test" string="Show Confirmed Registrations" help="Registrations in confirmed or done state" context="{'no_of_draft_invisible':1}"/>


Can you tell me the steps to reproduce this error, so that I can check. Also it seems like the relation._name_search wherever used, the relation object is not the correct one to use _name_search

on 5/2/14, 8:49 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

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

0 follower(s)


Asked: 5/1/14, 10:07 AM
Seen: 934 times
Last updated: 3/16/15, 8:10 AM