Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
20983 Zobrazení

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


What does it mean?

Avatar
Zrušit
Nejlepší odpověď

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))

Avatar
Zrušit
Nejlepší odpověď

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.


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
lis 24
30138
1
pro 21
2856
0
pro 21
2373
0
dub 15
4730
2
bře 15
10513