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

Hi , I am odoo newer.

I have a module inherit "sale.order" module and add a field "x_studio_delivery_note" that show on sale.order tree view.

But when I use another module to inherit the view of "sale.order", I want to get the locate of "x_studio_delivery_note" and disable that field in the tree view.

I get this error:

odoo.tools.convert.ParseError: "Element '' cannot be located in parent view

here is my code :

 

Please help me.Thanks!

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

Hi,

Seems the code is missing from the question due to the issues in the forum. The issue here might be you are inheriting the the sale order form itself and referring to the newly added field in it. Here the the newly added field is not in the sale order form view(original view, it is in inherited view). 

So instead of inheriting the sale order form, inherit the view that adds the field x_studio_delivery_note or refer to a field existing in the corresponding view.

Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
2513
0
thg 5 23
2279
3
thg 3 25
23850
1
thg 11 22
2180
1
thg 5 22
5693