I am inheriting a view and I want to add a group to it:
<record id="inherited_view_attendance_tree" model="ir.ui.view&qout;>
<field name="name">my_inherited_hr_attendance_view</field>
<field name="model">hr.attendance</field>
<field name="inherit_id" ref="hr_attendance.view_attendance_tree"/>
<field name="groups_id" eval="[(4, ref('hr_attendance.group_hr_attendance_user'))]"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='worked_hours']" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
</field>
</record>
And I am getting an error like this
odoo.tools.convert.ParseError: while parsing /mnt/extra-addons/my_project_name/views/hr_attendance.xml:5 Inherited view cannot have 'Groups' define on the record. Use 'groups' attributes inside the view definition
How to solve this issue?