I need a form view and I need its layout to be customized, using directly the Bootstrap 4 styles
How exactly can I do that ?
Also
I need some fields/tabs to appear conditionally (if some values is true) and such conditionally appearing fields need to be in my custom layout
Is this possible ?
How ?
First of all, I could use an example of a custom layout
And then I could use some enlightment on how the conditional appearing of fields is done, behind the scenes
Thanks in advance
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
Hi,
Custom Layout
You can use the class of bootstrap directly to Oddo as per your need.
for example:-
<div class="row container">
<div class="col-12 text-center">
//content here
</div>
</div>
2. fields/tabs to appear conditionally
You can use attrs on the field/tabs as per your need. for example:-
<field name="name" attrs="{'readonly': [('active', '=', False)]}"/>
<notebook attrs="{'invisible': [('active', '=', False)]}">
//tab content
</notebook>
Hope it helps
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
0
Şub 22
|
5457 | ||
|
1
Oca 25
|
1271 | ||
v18 Document layout Problem
Çözüldü
|
|
2
Ara 24
|
2122 | |
|
3
Mar 23
|
21980 | ||
|
1
Ağu 22
|
6885 |