Odoo Help

Welcome!

This community 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.

0

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

By
Imen
on 5/1/14, 10:07 AM 905 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"/>
                    <separator/>
                    <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>
                    <newline/>
                    <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>
                    <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}"/>
                    </group>
                </search>
            </field>
        </record>

Hi,

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

ASP
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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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