Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
3867 มุมมอง

When I install my custom module I receive this error:

odoo.tools.convert.ParseError: while parsing ..../views/res_partner_views.xml:3
Inherited view cannot have 'Groups' define on the record. Use 'groups' attributes inside the view definition

The view add a button on res partner form for a users group


        
        
        
            

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello Laura,

You can try this "groups" attribute like this : groups="crm.group_use_lead"






อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Hi,

yes with attr group in the button it work.

Thanks :)


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi, 

Please check, is there a code that used the Capital letter of Group attribute instead the small "group" inside the xml code.

I guess, it used "Group="any group id" instead of  "group="any group id".

You can not use The "Group" inside the xml definition. Please try with "group".

Hope it will help you.

อวตาร
ละทิ้ง

Inherited Qweb view cannot have 'Groups' define on the record. Use 'groups' attributes inside the view definition View error context: '-no

คำตอบที่ดีที่สุด

Hi 

You can use groups attributes like this

groups="module_name.group_name'

<button string="Create Button" type="object" name="action_create_button" groups="base.group_user" />


Regards

อวตาร
ละทิ้ง