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:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
266
Görünümler
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Ol