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.

1

Uncaught TypeError: Cannot read property 'selection' of undefined ?

By
Anuradha
on 7/31/13, 8:40 AM 4,688 views

while loading my calendar i have the error

 Uncaught TypeError: Cannot read property 'selection' of undefined

my view is

 <record model="ir.ui.view" id="calldata_calendar_view">
       <field name="name">calldata.calendar</field>
       <field name="model">calldata</field>
       <field name="type">calendar</field>
       <field name="arch" type="xml">
        <calendar string="Call details" date_start="Call_start">
           <field name="Dialled_number"  string="Dialled number"/>
       </calendar>
       </field>
       </record>

Any one please help ?

Try to use the editor properly before posting your question your code is not coming properly.

Nishant Kashyap
on 7/31/13, 8:53 AM
3
Bem P
On 9/23/13, 4:13 AM

The error is caused by a missing parameter(color) in the calendar tag. The calendar should have at least 2 parameters ie:

<calendar string="Call details" date_start="Call_start" color="Dialled_number">
    <field name="Dialled_number"  string="Dialled number"/> 
</calendar>

@Armand Pontejos Thanks alot :).I spent many hours on this error ,i am very happy that now its solved

Anuradha
on 9/27/13, 8:51 AM
0
Anuradha
On 7/31/13, 8:59 AM

My code is <record model="ir.ui.view" id="calldata_calendar_view"> <field name="name">calldata.calendar</field> <field name="model">calldata</field> <field name="type">calendar</field> <field name="arch" type="xml"> <calendar string="Call details" date_start="Call_start"> <field name="Caller" string="Caller"/> </calendar> </field> </record>

0
Anuradha
On 7/31/13, 9:01 AM

My code is <record model="ir.ui.view" id="calldata_calendar_view"> <field name="name">calldata.calendar</field> <field name="model">calldata</field> <field name="type">calendar</field> <field name="arch" type="xml"> <calendar string="Call details" date_start="Call_start"> <field name="Caller" string="Caller"/> </calendar> </field> </record>

0
Alain Ivars
On 7/31/13, 9:10 AM

Not sure but I think

< field name="type">calendar< / field>

is should be replace by:

< field eval="2" name="priority"/ >

has we can see in project_view.xml line 563, I hope that will help you :)

I replaced the code but the issue still not solved :(

Anuradha
on 8/1/13, 3:45 AM

I am also have same problem

Abdelmgeed Khalil
on 8/16/13, 11:40 AM
0

Jagdish Panchal

--Jagdish Panchal--
2674
| 5 3 6
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

Jagdish Panchal
On 9/9/13, 2:21 AM

Not sure but I think this will help you

    <record model="ir.ui.view" id="calldata_calendar_view">
       <field name="name">calldata.calendar</field>
       <field name="model">your obejct name</field>
       <field name="arch" type="xml">
            <calendar string="Call details" date_start="date_from" date_stop="date_to">
               <field name="Dialled_number"  string="Dialled number"/>
            </calendar>
       </field>
   </record>

    <record model="ir.actions.act_window.view" id="give any name to id">
        <field name="sequence" eval="1"/>
        <field name="view_mode">calendar</field>
        <field name="view_id" ref="calldata_calendar_view"/>
        <field name="act_window_id" ref="your menu id "/>
    </record>

Thanks

I changed code but error still comes

Anuradha
on 9/10/13, 1:43 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

2 follower(s)

Stats

Asked: 7/31/13, 8:40 AM
Seen: 4688 times
Last updated: 3/16/15, 8:10 AM