Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
249 Prikazi

Hi guys!!!

Please, i want to know why when i make:

return super(class_name, self).create(cr, uid, vals, context=context)

It create the recordset and it is saved in the database. But it will disappear from odoo.

Please help

Avatar
Opusti
Best Answer

You are mixing old and new api, you are saying recordset is created but that is created only in new api, the code you posted above is from old api, that returns record id only not record. Please add more details to your question, not enough to description to know the problem. I don't know real problem but May be you are creating record in one2many field and not setting value of many2one field so record is not shown in Odoo.

Avatar
Opusti
Avtor

Thanks a lot for your answer and your time. I have corrected it. In fact, tthat was an error from me i didnt defined the attribute in the manyone field.. now everything works correctly. Thanks a lot ;)

Related Posts Odgovori Prikazi Aktivnost
0
mar. 25
1415
0
jan. 25
3493
1
avg. 23
14853
1
avg. 23
13505
1
jul. 23
10484