<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
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
1
الرد
11217
أدوات العرض
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
فبراير 21
|
1894 | ||
|
1
يونيو 25
|
25039 | ||
|
2
يوليو 22
|
4209 | ||
|
1
مارس 22
|
2362 | ||
|
1
سبتمبر 21
|
3849 |