Skip to Content
Menú
This question has been flagged
1 Respondre
2060 Vistes

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!

Avatar
Descartar
Autor

It still gives me errors :(

Best Answer

Hi,

You can try as follows:




Thanks

Avatar
Descartar

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

Autor

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 Respostes Vistes Activitat
0
de set. 23
1552
1
d’ag. 23
3735
0
de maig 24
1386
1
d’ag. 23
4758
4
de juny 25
2024