Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1567 มุมมอง

I want to create a graph view with only a bar graph so the pie and line graph must be hidden/removed at the same time I want the stacked button to be hidden/removed 

this is my graph view



this is my action window


this is my menu item



And this is how it looks like in my Module

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

         

try this one


อวตาร
ละทิ้ง

<graph string="Custom Bar Graph View" type="bar" mode="primary">

ผู้เขียน

doesn't work it results in an error that says
View error context:
-no context-

<graph string="Custom Bar Graph View" type="bar" mode="primary">
<!-- Ensure that only the bar chart is visible -->
<field name="graph_type" invisible="1">bar</field>
<field name="stacked" invisible="1"/>
</graph>

ผู้เขียน

still will not work besides the fact that the mode="primary" is the reason why it said no context
the second reason would be because if you code this in
<field name="graph_type" invisible="1">bar</field>
<field name="stacked" invisible="1"/>
it will say that it is not found in the model

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ค. 24
14
0
ก.ค. 24
31
2
ก.ค. 25
527
1
มี.ค. 25
1142
Stock And Point Of Sale FIFO in Odoo 17 แก้ไขแล้ว
1
ก.ค. 24
1125