Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2202 Näkymät

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
Hylkää
Tekijä

It still gives me errors :(

Paras vastaus

Hi,

You can try as follows:




Thanks

Avatar
Hylkää

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

Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
syysk. 23
1694
1
elok. 23
3927
0
toukok. 24
1489
1
elok. 23
4921
3
elok. 25
2642