Skip to Content
Menu
This question has been flagged
2896 Views

I created one2many field named gdpr in model res.partner. When I insert data into it, then save on it.
getting below error:
maximum recursion depth exceeded while calling a python object
I had written below code:

class gdprrequest(models.Model):
_name='gdpr.request'
_description='Gdpr Request'

gdprq_line_ids=fields.Many2one('res.partner',string="Gdprq line")
ids=fields.Integer(string="ID")

class respartner(models.Model):
_name='res.partner'
x_studio_field=fields.One2many('gdpr.request','gdprq_line_ids',string="List of Request")

If anyone know, please let me know

Avatar
Discard

You should inherit res.partner instead of defining

Author

I actually inherit res.partner. But nothing happen

provide practical (one cycle) traceback