Skip to Content
Menu
This question has been flagged
2 Replies
1425 Zobrazenia

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


Avatar
Zrušiť
Best Answer

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

Avatar
Zrušiť
Best Answer

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

Avatar
Zrušiť

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>