Hi,
I am writing a custom module and models.
My model inherits from res.partner and I am getting the following error.
TypeError: Many2many fields newmodule.partner.channel_ids and res.partner.channel_ids use the same table and columns
class Partner(models.Model):
_name = 'newmodel.partner'
_inherit = 'res.partner'
id = fields.Many2one('newmodel.cat',
string="Cat")
class Cat(models.Model):
_name = 'newmodel.cat'
_description = ' '
name = fields.Char(string="Name", required=True)
description = fields.Text()
partner_id = fields.One2many('newmodel.partner', 'id', string="Partners")
How can I fix it?