Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1417 Widoki

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


Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć

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>