How to create and write multiple records by overriding create and write method of odoo12 ??
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilitat
- Inventari
- PoS
- Project
- MRP
This question has been flagged
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
2
de gen. 16
|
34993 | ||
|
2
d’ag. 19
|
4297 | ||
|
0
de set. 20
|
37 | ||
|
1
d’ag. 20
|
4121 | ||
|
1
d’abr. 20
|
4706 |