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

Hello everyone, I'm having difficulty hiding a field in Odoo 16, specifically the description field in the Sale Order view. I've created a view to inherit from the parent function, but I keep getting errors. I'm not sure if I need to create a Python file or if the view is enough. Here's my code.





Thank you in advance!

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

It still gives me errors :(

Câu trả lời hay nhất

Hi,

You can try as follows:




Thanks

Ảnh đại diện
Huỷ bỏ

<xpath expr="//field[@name='order_line']/tree/field[@name='description']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>

Tác giả

I was able to solve it already, it was actually a simpler thing, my fault, I had forgotten to include 'sale' inside the manifest.

Thank you anyway :)

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 23
1635
1
thg 8 23
3880
0
thg 5 24
1476
1
thg 8 23
4886
3
thg 8 25
2582