Skip to Content
Menu
This question has been flagged
2 Replies
21082 Rodiniai

ValueError: Many2one shrinkage.record.line.shrinkage_record_id from Model to TransientModel is forbidden,


What does it mean?

Portretas
Atmesti
Best Answer

It means Model 'shrinkage.record.line' is  Transient Model. (e.g. class MyTransientModel(models.TransientModel)

you couldn't use a transient model as Many2one field in persistence model (e.g. class MyModel(models.Model))

Portretas
Atmesti
Best Answer

Transient Model are not handled as Models.model in the database. Although, it also saved as a database record, it will be deleted automatically after its data transferring work.


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
lapkr. 24
30280
1
gruod. 21
2923
0
gruod. 21
2432
0
bal. 15
4777
2
kov. 15
10575