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

I used Node-Odoo library (https://github.com/isotopo/node-odoo) for CRUD operation on Odoo.

I fetch record of model 'res.partner' from Odoo, it gives a response (all is well)

Response something like below:

{

        "name": "ASUSTeK",

        "city": "Taipei",

        "user_id": false

}

In above response object highlighted text 'user_id' which have value 'false',actually this field is relationship with 'res.users' model.So problem is that Odoo return value false all that fields which is not setted/null.

Can anyone have a solution to avoid false value for not set fields in a model record?.

NOTE: I don't know it is Odoo default behavior or I can change it via any setting, No idea.

Any solution or suggestion?.

Thank you

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 24
2671
1
thg 6 24
5138
1
thg 10 23
10848
1
thg 10 23
98
1
thg 8 23
2193