コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2595 ビュー

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! 

アバター
破棄
関連投稿 返信 ビュー 活動
1
10月 24
1401
2
7月 23
2895
1
5月 23
2245
2
7月 22
4716
3
12月 21
4541