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

Hi everyone

I made a function to insert some information to sale_order table, and my query words great, no errors, but I don't see the record in the table. Though, after next query I see another ID of new record. What should I do to see these invisible existing records.

Thanks

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

Did you have to use a query instead of the ORM? Inserting data using a query is really bad practice in Odoo.

That said, this does not fix your problem. Did you commit after running the query? If not, try to do so and see if that makes a difference.

Ảnh đại diện
Huỷ bỏ