콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
11232 화면
<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
1903
1
6월 25
25055
2
7월 22
4214
1
3월 22
2363
1
9월 21
3866