콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
5 답글
14475 화면

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.

베스트 답변

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

베스트 답변

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

작성자 베스트 답변

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>

아바타
취소
작성자 베스트 답변

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>

아바타
취소
베스트 답변

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 :(

I am also have same problem

관련 게시물 답글 화면 활동
1
4월 15
7107
3
6월 21
7616
6
9월 20
8884
0
3월 15
2260
2
3월 15
8393