Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2174 Visualizzazioni

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
Abbandona
Autore

It still gives me errors :(

Risposta migliore

Hi,

You can try as follows:




Thanks

Avatar
Abbandona

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

Autore

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

Post correlati Risposte Visualizzazioni Attività
0
set 23
1629
1
ago 23
3879
0
mag 24
1474
1
ago 23
4879
3
ago 25
2572