Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
943 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

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

Related Posts Odpovědi Zobrazení Aktivita
2
lis 24
2178
4
úno 24
12303
1
led 24
1665
0
kvě 23
1890
4
dub 23
41832