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

Hello, I'm just wondering why my Tree view list is not showing in my UI?

This is my patient.xml

 



this is my manifest.py


patient.py



My search view is showing so I was wondering why only Name is showing


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Try Upgrading the module, that may be the issue , or try referring to free modules in odoo apps store to figure out what is causing the issue.


https://apps.odoo.com/apps/modules/15.0/base_hospital_management/


Hope it helps

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Emman, To find the issue you need to verify few things mentioned below.


1: Start debug mode. Then click on "Edit view: List" option. Here you need to check the "External id" field.


2: If the external id is not equal to "om_hospital.view_hospital_patient_tree". Which means both views are different and to fix this you need to pass the id of view in the action as follow.

Please find XML code in comment. 

3: If the external id is the same then compare the "Architecture". If the code is not updated here, It indicates that the module is not properly updated. So, We just need to upgrade the module manually.


4: If the "Architecture" is also same then check the "Inherited Views" tab and ensure that if any view is replacing our view.


Kindly let us know if you're still facing this issue.

Thanks & Regards,
Email:  odoo@aktivsoftware.com   

Skype: kalpeshmaheshwari

Ảnh đại diện
Huỷ bỏ

Please find code here :-

XML Code:

<record id="hospital_patient_action" model="ir.actions.act_window">
<field name="name">Patient</field>
<field name="res_model">hospital_patient</field>
<field name="view_mode">tree</field>
<field name="view_id" ref="om_hospital.view_hospital_patient_tree"/>
</record>