Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd

class Child(models.Model):

    _name = 'model.child' 

class A(models.Model):

    _name = 'model.a' 

    _inherits = {'model.child':'child_id'}

    child_id = fields.Many2one('model.child', required=True, ondelete='cascade')

@api.multi

def unlink(self):

for model_a in self:

model_a.child_id.unlink()


I always get an Access Error. The requested operation cannot be completed due to security restrictions. Please contact your system administrator.
(Document type: Message, Operation: unlink)

With odoo 11 it was not a problem, but with odoo 12 I cannot delete the delegated child. How can it be solved?


Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
nov. 20
4039
1
dec. 19
5928
1
feb. 24
12130
6
mei 24
51093
1
feb. 23
697