<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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- 项目
- MRP
此问题已终结
1
回复
11848
查看
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
|
2301 | ||
|
|
1
6月 25
|
26696 | ||
|
|
2
7月 22
|
4957 | ||
|
|
1
3月 22
|
3131 | ||
|
|
1
9月 21
|
4760 |