hi guys, I want to show a field in the res.partner form view but the field is in another object. How can i do to show it in that view? Thanks a lot for your answers
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ờ
1
Trả lời
3692
Lượt xem
Hi,
You must define a field type function in res.partner
. and in this function get information in another object.
def _get_other(self,cr,uid,ids,field,arg,context=None):
res={}
//your treatment
return res
_columns = {
'other': fields.function(_get_other, method=True, type='float',string='Info other'),
}
Thank 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 | |
---|---|---|---|---|
|
4
thg 1 24
|
24048 | ||
Attrs attribute
Đã xử lý
|
|
2
thg 1 24
|
2970 | |
|
0
thg 8 23
|
2819 | ||
|
5
thg 9 21
|
18258 | ||
|
3
thg 1 21
|
18661 |