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

I'm trying to create a Kanban view that displays some data I have specified , But it shows this error

TypeError: node is undefined

Here is my code:

<record id="projection_view_kanban" model="ir.ui.view">
<field name="name">projection.target.kanban</field>
<field name="model">projection.target</field>
<field name="priority" eval="8"/>
<field name="arch" type="xml">
<kanban class="o_kanban_mobile">
<field name="sales_man"/>
<field name="target"/>
</kanban>
</field>
</record>

Somebody please  tell me how to deal with this?

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

I have found a solution

The error was because Gave different field inside template than on the outside now my code is:

<record id="projection_view_kanban" model="ir.ui.view">
<field name="name">projection.target.kanban</field>
<field name="model">projection.target</field>
<field name="priority" eval="8"/>
<field name="arch" type="xml">
<kanban class="o_res_partner_kanban" create="false">
<field name="sales_man"/>
<field name="target" />
<field name="sal" />
<templates>
<t t-name="kanban-box">
<div class="oe_kanban_global_click o_res_partner_kanban" style="background-color:#00438a;color:#fff;border-radius:15px;">
<div class="oe_kanban_details">
<strong class="o_kanban_record_title oe_partner_heading" style="font-size:16px;">
<field name="sales_man" style="display:block;"/>
</strong>
<span style="display:block;">Target:<field name="target" /></span>
<span style="display:block;">Achievement:<field name="sal" /></span>
</div>
</div>
</t>
</templates>
</kanban>
</field>
</record>
아바타
취소
관련 게시물 답글 화면 활동
2
9월 19
5166
1
4월 19
4973
0
2월 16
5115
2
2월 24
3316
1
8월 23
4912