ValueError: Many2one shrinkage.record.line.shrinkage_record_id from Model to TransientModel is forbidden,
What does it mean?
ValueError: Many2one shrinkage.record.line.shrinkage_record_id from Model to TransientModel is forbidden,
What does it mean?
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))
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.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
3
Nov 24
|
33854 | |||
|
1
Dec 21
|
4389 | |||
|
0
Dec 21
|
4010 | |||
|
0
Apr 15
|
6428 | |||
|
2
Mar 15
|
11960 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.