コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
11252 ビュー
<xpath expr="//field[@name='coach_id']" position="after">
<field name="manager" groups="base.group_no_one"/>
</xpath>
I want to add custom group on manager field by xpath.
アバター
破棄
最善の回答

That should work if manager isn't yet defined on your view. If manager is already defined on a previous view, you should alter the attributes section of the field.

<xpath expr="//field[@name='manager']" position="attributes">
    <attribute name="groups">base.group_no_one</attribute>
</xpath>
アバター
破棄
著作者

It's work for me. Thank you @Alex

関連投稿 返信 ビュー 活動
0
2月 21
1910
1
6月 25
25106
2
7月 22
4245
1
3月 22
2382
1
9月 21
3888