Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3549 Tampilan

Hi All,

I have 3 fields like below


field_a = fields.Selection([('mobile', "Mobile"), ('tab', "Tablet")])

mobile = fields.Boolean(default=True, track_visibility='always')

tab = fields.Boolean(default=True, track_visibility='always')

In Xml

<field name='field_a' widget='radio'/>

<field name='mobile' attrs="{'invisible': [('field_a', '=', 'tab')]}"/>

<field name='tab' attrs="{'invisible': [('field_a', '=', 'mobile')]}"/>


In Logger, It displaying like below

field_a: tab

mobile: true

tab: true


I want to show the logger based on field visibility. Is this possible?


Thanks in Advance.

Avatar
Buang

show the logger?

Post Terkait Replies Tampilan Aktivitas
1
Agu 19
4953
9
Okt 19
28675
0
Mar 25
1175
1
Okt 22
3527
2
Jul 22
9019