In Odoo 18, if you override the create() method in a model that has a Many2one field and a One2many field, what happens if you try to create a record without filling the Many2one field but provide values for the One2many field? Why does this happen, and how can you fix it so it works correctly without causing errors in the database?
Câu hỏi này đã bị gắn cờ
100
Lượt xem
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
Hello
https://www.odoo.com/documentation/19.0/developer/reference/backend/orm.html#relational-fields