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
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
3531
Views
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
3
Nov 24
|
2947 | ||
|
5
Nov 24
|
7455 | ||
|
2
Oct 24
|
2883 | ||
|
4
Oct 24
|
1863 | ||
|
2
Oct 24
|
4016 |
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.