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

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


What does it mean?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
lis 24
30108
1
gru 21
2824
0
gru 21
2363
0
kwi 15
4718
2
mar 15
10499