Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
279 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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.

Аватар
Відмінити
Автор

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 Відповіді Переглядів Дія
0
бер. 25
1439
0
січ. 25
3560
1
серп. 23
14909
change password Вирішено
1
серп. 23
13578
1
лип. 23
10538