<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
- Comptabilitat
- Inventari
- PoS
- Project
- MRP
This question has been flagged
1
Respondre
11213
Vistes
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!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
0
de febr. 21
|
1894 | ||
|
1
de juny 25
|
25039 | ||
|
2
de jul. 22
|
4209 | ||
|
1
de març 22
|
2362 | ||
|
1
de set. 21
|
3849 |