i want to add this condition in a button
invisible="['|', ('state', '!=', 'draft'), ('initial_invoice', '=', True)]"
It is not working for odoo17, How to make the or condition work ???
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
2
Risposte
7576
Visualizzazioni
Try like this.
invisible="state != 'draft' or initial_invoice = True"
its work for me,thank you
You can try this. -> invisible="condition 1 or condition 2"
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
3
feb 24
|
2298 | ||
|
0
apr 24
|
30 | ||
|
2
lug 18
|
14945 | ||
Always invisible fields on V18
Risolto
|
|
1
giu 25
|
3322 | |
|
0
mar 25
|
786 |