Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2072 Widoki

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!

Awatar
Odrzuć
Autor

It still gives me errors :(

Najlepsza odpowiedź

Hi,

You can try as follows:




Thanks

Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
0
wrz 23
1574
1
sie 23
3758
0
maj 24
1422
1
sie 23
4771
3
sie 25
2189