Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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?


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lis 20
3945
1
gru 19
5836
1
lut 24
12007
6
maj 24
50734
1
lut 23
697