Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2122 Представления

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
1603
1
авг. 23
3811
0
мая 24
1443
1
авг. 23
4847
3
авг. 25
2446