Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
277 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Autor

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 ;)

Verknüpfte Beiträge Antworten Ansichten Aktivität
0
März 25
1438
0
Jan. 25
3559
1
Aug. 23
14908
1
Aug. 23
13572
1
Juli 23
10538