<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
- Contabilitate
- Inventar
- PoS
- Project
- MRP
Această întrebare a fost marcată
1
Răspunde
11206
Vizualizări
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Înscrie-teRelated Posts | Răspunsuri | Vizualizări | Activitate | |
---|---|---|---|---|
|
0
feb. 21
|
1894 | ||
|
1
iun. 25
|
25037 | ||
|
2
iul. 22
|
4208 | ||
|
1
mar. 22
|
2361 | ||
|
1
sept. 21
|
3849 |