Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2224 มุมมอง

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!

อวตาร
ละทิ้ง
ผู้เขียน

It still gives me errors :(

คำตอบที่ดีที่สุด

Hi,

You can try as follows:




Thanks

อวตาร
ละทิ้ง

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

ผู้เขียน

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 :)

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ย. 23
1724
1
ส.ค. 23
3972
0
พ.ค. 24
1513
1
ส.ค. 23
4995
3
ส.ค. 25
2786