return {'type': 'ir.actions.act_url',
'url': '/linkedin/post',
'target': 'self',
'context': {
'res_id': self.id
},
}
@http.route('/linkedin/post', csrf=False)
def post_to_linkedin(self, **kwargs):
# record_id = int(kwargs.get('res_id'))
res_id = kwargs.get('res_id')
i want to get id in controller but kwargs is empty how to get that
note: i dont want to pass that in url , help me with this guys.
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ờ
282
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ý