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
890 Widoki

Hello,

I am working on Odoo 18 in a multicompany setup. I am trying to display a custom field in sales order list view only for one company only.

However the invisible condition does not seem to have any effect and it is beign diaplyed on all companies.



Can anyone help me?

Thanks.

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

To make a field invisible in a list view, you should use the column_invisible attribute.

You can use it like this:


<field name="your_field" column_invisible="company_id not in [your_company_ids]"/>


Hope it helps

Awatar
Odrzuć
Autor

Hello,
Thanks for the reply.
When using your solution, its saying company_id is undefined. My field is of char datatype.

Powiązane posty Odpowiedzi Widoki Czynność
2
lis 24
2104
4
lut 24
12246
sale / delivery Rozwiązane
1
sty 24
1608
0
maj 23
1841
4
kwi 23
41721