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

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.

Avatar
Hylkää
Paras vastaus

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

Avatar
Hylkää
Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
marrask. 24
2184
4
helmik. 24
12324
1
tammik. 24
1673
0
toukok. 23
1896
4
huhtik. 23
41859