Skip to Content
Menu
This question has been flagged
1 Reply
2951 Views

I use this;


class A (models.Model)

_name =  'A'

.....


class B (models.Model)

_name = 'B'

_inherits = { 'A':'a_id'}

a_id = fields.Many2one('a',required=True,ondelete='cascade')

......


@api.multi

def unlink(self):

self.a_id.unlink()

return super(B,self).unlink()


but get this Error "Record does not exist or has been deleted."

How to delete A data from B tables

Avatar
Discard
Author Best Answer

that is solved, Error because of my own mistake

Avatar
Discard
Related Posts Replies Views Activity
2
Feb 23
6266
0
Sep 20
2234
2
Mar 15
4692
3
Jun 24
362
3
Jun 24
5173