I have inherited 'res.users' and added some custom fields.
class ResUsers(models.Model):
_inherit = 'res.users'
start_date = fields.Date(string='Start Date')
renew_date = fields.Date(string='Renew Date')
I want to create a new tree view under a new menu with these custom fields(start_date, renew_date, login, name) without modifying the existing view. My current code tree view.
users.view.inherit
res.users
primary
Using the above xml still overrides the existing view, more specifically the 'users' - many2many field in res.groups and it's corresponding view with ID view_groups_form in base.action_res_groups action.
Is there anyway to not override the above view_groups_form users many2many view?
Thanks for the help
here's the xml code:
<record id="users_view_inherits" model="ir.ui.view">
<field name="name">users.view.inherit</field>
<field name="model">res.users</field>
<field name="mode">primary</field>
<field name="arch" type="xml">
<tree delete="0">
<field name="login"/>
<field name="name"/>
<field name="start_date"/>
<field name="renew_date"/>
</tree>
</field>
</record>