Hello everybody!!
Please who can give me an answer.
Why when i do this:
services.create(cr,uid,value) (where services = self.pool.get('project.service.line') )
It add the recordset but without displaying it in the @api v8 of odoo
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello everybody!!
Please who can give me an answer.
Why when i do this:
services.create(cr,uid,value) (where services = self.pool.get('project.service.line') )
It add the recordset but without displaying it in the @api v8 of odoo
The create method of the old API will only return the id of the record. To view the full record you may use:
new_id = services.create(cr, uid, value) # where services = self.pool.get('project.service.line')
record = services.browse(cr, uid, new_id)
Thanks a lot for the answer. but, it doesnt work :/
new_id = services.create(cr, uid, value) print new_id record = services.browse(cr, uid, new_id) print record return record I got: 57 callim.project.service.line(57,) But it doesnt display anything. please need an answer
Hi Abdelwahed. This is exactly as expected. If you print record you will get project.service.line(57, ). If you need to print a field, you can do print record.field_name.
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
2
d’ag. 25
|
2252 | ||
|
1
de jul. 25
|
790 | ||
|
1
d’ag. 25
|
1150 | ||
|
0
de maig 25
|
1269 | ||
|
2
d’abr. 25
|
3477 |