跳至內容
選單
此問題已被標幟
1 回覆
3587 瀏覽次數

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.

頭像
捨棄

show the logger?

相關帖文 回覆 瀏覽次數 活動
1
8月 19
5096
9
10月 19
28790
0
3月 25
1368
1
10月 22
3670
2
7月 22
9180