Hi I have created a custom module in openerp v7. I am using win7 and eclipse IDE(Python) . I have added a button to my module to give it more features. But I dont know how to add a function to that button . I dont have any idea how to declare functions in openerp and call them ?
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
5640
Lượt xem
'my_field': fields.function(_get_myfield, method=True, string='Reference', type='char'),
def _get_myfield(self, cr, uid, ids, field_name, arg, context=None): #your logic declared here return result
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 | |
---|---|---|---|---|
|
1
thg 12 23
|
32081 | ||
|
0
thg 3 15
|
4776 | ||
|
0
thg 3 15
|
4068 | ||
|
1
thg 3 15
|
9744 | ||
|
0
thg 3 15
|
3519 |