I have two kinds of invoice sales journal, I want to hide a field (x_serieDTE) in one of both journal
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
4778
Widoki
Hi,
If you are using odoo studio, you can add a conditional invisible attribute for the field. Enable studio, click on field then click on condition near the invisible attribute and set your condition.
If you need to do from code, you can achieve it using attrs attribute, see a sample code:
attrs="{'invisible': [('state','!=','paid')]}"
Thanks
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
3
sie 25
|
2672 | ||
|
1
maj 25
|
2670 | ||
|
1
kwi 25
|
3672 | ||
|
1
kwi 25
|
4521 | ||
|
1
kwi 25
|
1986 |
Can you screenshot the code relevant to the problem ?
Enviado: Thursday, November 10, 2022 9:12:00 PM
Para: Rodolfo Boy <rboy@olomcorp.com>
Asunto: Re: How to hide field in a Form View? in odoo16
Can you screenshot the code relevant to the problem ?
Sent by Odoo S.A. using Odoo.