Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2558 มุมมอง

I am trying to hide two fields based on a condition, the code nearly does it because it hides correctly the values of the fields but the label or header is still there. Is it possible to hide those fields completely?:



id="invoice_form_custom" model="ir.ui.view">
name="model">account.move
name="inherit_id" ref="account.view_move_form"/>
name="arch" type="xml">
expr="//field[@name='product_id']" position="after">

name="clasification" invisible="1"/>

name="verified"
attrs="{'invisible':[('classification', '!=', 'TEKNIA')]}"/>

name="repaired"
attrs="{'invisible':[('classification', '!=', 'ARTESTATIVES')]}"/>



expr="//field[@name='line_ids']/tree/field[@name='account_id']" position="after">
name="verified" invisible="1"/>
name="repaired" invisible="1"/>





Thank you for your attention



อวตาร
ละทิ้ง

Hello,
Since the list view displays several records, you can only conceal the value of a field there. because records will exist with the attrs conditions that are both true and false.

ผู้เขียน คำตอบที่ดีที่สุด

So it can't be done, thank you so much for your response! 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ต.ค. 24
1376
2
ก.ค. 23
2846
1
พ.ค. 23
2199
2
ก.ค. 22
4696
3
ธ.ค. 21
4503