Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
HI,
The field value is .
Reference field Basically stored as a :class:`string ` following the pattern "res_model,res_id" in the database. It Display as the selection . If you want to pass the value to the reference field, then you have to pass the formation value in the field where the first argument is the record model and second argument will be the id of that model.
Like:
reference_record = '%s,%s' % (res_model, res_id)
reference_field_record = '%s,%s' % ('ir.actions.act_window', 11)
Hope it will help you.
Thanks.
thanks, i also know that _name return the model name :)
Yes right. Hope it will help you.
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ýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 7 22
|
4452 | ||
|
3
thg 12 21
|
4199 | ||
|
3
thg 7 23
|
5597 | ||
|
2
thg 3 24
|
5594 | ||
|
1
thg 11 22
|
5375 |