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

I am using Odoo 16. Whenever I am trying to create a form view, It is showing the AssertionError. My code is given below:




hospital.patient.view.form
hospital.patient


>





Patients
ir.actions.act_window
hospital.patient
tree,form


name="Patients"
parent="menu_hospital_operations"
action="action_hospital_patient"
sequence="10"/>


The problems showing:
2023-09-30 09:01:08,547 24383 ERROR odoo16Testing odoo.tools.convert: The XML file '/Users/fuad113/odoo16/dev/om_hospital/views/patient.xml' does not fit the required schema ! 

Traceback (most recent call last):

File "/Users/fuad113/odoo16/odoo/odoo/tools/convert.py", line 812, in convert_xml_import

relaxng.assert_(doc)

File "src/lxml/etree.pyx", line 3653, in lxml.etree._Validator.assert_

AssertionError: Element odoo has extra content: record, line 3





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

This issue usually happened when you have an extra tag left open. Please check your xml file and see if tag is not closed properly. Or share your code I will try to assist you. If this answer helps you +1 

Thanks

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

HI,
There is syntax error in the added view, you have cross check the view and spot the error, if you are not able to spot it, comment some section of the view and try to trace from which part of view the error is coming.

Form View Sample


Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất
I tried to share the code. But is not pasting properly. I have checked all closing tags. All are fine.



Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 24
1425
1
thg 10 23
2081
0
thg 12 20
1693
0
thg 5 17
6912
0
thg 3 15
6538