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

I was trying to create a pivot in Odoo v11 but when I install the app , It shows this error

ValueError: Wrong value for ir.actions.act_window.view_type: 'pivot'

my xml code is as follows:

 <record id="action_view_pivot" model="ir.ui.view">

<field name="name">projection.onetomanydata.pivot</field>

<field name="model">projection.onetomanydata</field>

<field name="arch" type="xml">

<pivot string="View Achievements">

<field name="date" type="row"/>

<field name="inv" type="row"/>

<field name="target" type="measure"/>

<field name="sales_today" type="row"/>

<field name="inv" type="col"/>

<field name="date" type="col"/>

</pivot>

</field>

</record>
아바타
취소
베스트 답변

Hello Muhammed Nishad,


You can try this in action view :-

<record id="unique_id" model="ir.actions.act_window">
    <field name="name">name</field>
    <field name="res_model">model.name</field>
    <field name="view_type">form</field>
    <field name="view_mode">graph,pivot</field>

    <field name="search_view_id" ref="search_view_id"/>
</record>


You have to add view_type as form view instead of pivot. You can add view_mode as a pivot.

Hope it will works for you.

Thanks,

아바타
취소
작성자

Thank you brother.

It really works.

베스트 답변

Thanks so much !

아바타
취소
관련 게시물 답글 화면 활동
2
9월 19
5206
2
2월 24
3346
1
8월 23
4925
6
4월 23
17237
2
12월 22
6431