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

Is it possible to use the following?:

<field .. .. attrs="{'invisible': [('partner_id.name', '!=', False)]}">

The main question is: is the dot ('.') allowed?

We couldn't get it to work..

アバター
破棄
最善の回答

Well you could not get it works, because it does not. To make such things, you need to add fields on the current model (see fields.related)

アバター
破棄
著作者

OK, you already gave an alternative solution! Thanks!

著作者

Why does a +domain+ allow the dot notation? and attrs not? Do you know why? Or where it is documented?

A related field in not set till you save. What happens if you've got a boolean and depending on the setting of the boolean you will be able to see certain fields.

関連投稿 返信 ビュー 活動
1
3月 24
5683
2
7月 18
8101
1
3月 15
12034
0
3月 15
4536
2
9月 24
4461