<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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
1
회신
11232
화면
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 |