How to create and write multiple records by overriding create and write method of odoo12 ??
Dette spørgsmål er blevet anmeldt
Create method uses api.model and due to that you can only create one record at a time.
Write method uses api.multi and due that you can update multiple records at a time.
while i am using @api.multi and trying to write multiple record at a time ,then it trows singleton error and suggest to use ensure_one().
You are right for the above answer but somehow i want to write multiple records at a time.So please suggest
You can create a wizard for that and based on some conditions search your records and write the value to them.
Is there any suggestions for this type of solutions please sir ..and thank you very much
Kan du lide at diskutere? Læs ikke bare med, deltag aktivt i debatten!
Opret en konto i dag for at få glæde af eksklusive funktioner, og bliv en del af vores skønne fællesskab!
Tilmeld dig| Relaterede indlæg | Besvarelser | Visninger | Aktivitet | |
|---|---|---|---|---|
|
|
2
jan. 16
|
38656 | ||
|
|
2
aug. 19
|
6670 | ||
|
|
0
sep. 20
|
38 | ||
|
|
1
aug. 20
|
7197 | ||
|
|
1
apr. 20
|
7633 |