تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
11217 أدوات العرض
<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.
الصورة الرمزية
إهمال
أفضل إجابة

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