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

Hi all,

I want to add a button here (Barcode app -> Operations -> Receipts:


Therefore I try to inherit the stock_barcode.LineComponent template (enterprise/stock_barcode/static/src/components/line.xml) with a custom module like so:


But as soon as I add the I'm getting this error:

I found the error “AssertionError: element odoo has extra content:...” in a couple other posts, but it didn't seem like they dealt with the same cause.


Any ideas?


Thanks in advance

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

Hi, Matthias Enderle


You have added an extra tag in the xml file “line.xml” which causes the error. Also to show the barcode before the edit button you need to update the xpath in file “line.xml”. Please refer to the attached screenshot.



I Hope this information proves helpful to you. 

Thanks & Regards,

Email:   odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari

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

Thanks for your help.
After removing the odoo tag i got another error: AssertionError: Document does not comply with schema.
The problem was that I tried to add it as a view in the manifest instead of web.assets_backend.

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 6 24
3251
2
thg 5 25
999
0
thg 2 25
1428
0
thg 12 24
46
0
thg 12 24
1240