Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3980 Lượt xem

I am new to odoo and i am creating a kanban view.


Here's my code, my simple kanban view

<templates><tt-name="kanban-box"><divclass="oe_kanban_global_click"><fieldname="name"/><fieldname="expected_price"/>div>t>templates>kanban>


So i tried creating a kanban view using the field name only and it worked. However when i changed it to field expected_price  and commented the name field, it doesn't change anything. Web still displays name. There is no error whatsoever, it does not update the xml. However, when i change something on the tree view, after refresh, it works perfect. Kanban view is the only one experiencing no update.

Am i missing something? 


Please help, thanks!

Ảnh đại diện
Huỷ bỏ
Tác giả

Tried re-installing the module and the error appeared. Unfortunately, in one record tag, there should only be 1 view. My kanban view finally updated after creating a separate record tag for the kanban view

Câu trả lời hay nhất

Hi,

Here is the sample code for the Kanban view:-

<kanban class="o_kanban_mobile">
<field name="name"/>
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_global_click">
<div class="row">
<div class="col-6">
<strong>
<field name="name"/>
</strong>
</div>
</div>
</div>
</t>
</templates>
</kanban>

In order to see the change in the Kanban view you need to upgrade the module since it is the change in XML file

Regards

Ảnh đại diện
Huỷ bỏ
Tác giả

already did the upgrade but the "name" field is still showing even though i changed it to "expected_price"

Please make sure the condition mentioned below:
Make sure that the XML file is placed in the manifest file correctly.
If you are inheriting make sure that the inherit_id is correct.
If the issue still exists, please gave us some more information about the code.

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 6 23
4877
0
thg 2 16
5184
1
thg 5 24
2128
1
thg 4 24
1984
1
thg 2 24
2847