Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3628 Prikazi

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
Opusti
Avtor Best Answer

that is solved, Error because of my own mistake

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
feb. 23
8805
0
sep. 20
3852
2
mar. 15
6534
3
sep. 25
2565
3
jun. 24
7282