Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
271 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 25
1436
0
thg 1 25
3550
1
thg 8 23
14903
change password Đã xử lý
1
thg 8 23
13566
1
thg 7 23
10529