跳至內容
選單
此問題已被標幟
1 回覆
11230 瀏覽次數
<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
1899
1
6月 25
25047
2
7月 22
4211
1
3月 22
2363
1
9月 21
3861