Odoo Help


how to use res_id in odoo ?

on 5/13/16, 1:42 AM 797 views

I cant understand that concept. please give me simple clear example from anyone.

On 5/26/16, 12:48 AM

<field name="res_id" ref="Passenger_list"/>

I got it answer in this above code passenger_id is a another table tree view id .. Thanks prakash shrama


Prakash Sharma

--Prakash Sharma--
--Prakash Sharma--

I like to surround myself with brave, creative people.

My motivation for learning different technologies and algos drive me. I love challenges of a steep learning curve which I believe makes me a better learner. I have a strong desire to learn different technologies, which would enable me to become a full stack developer.

Prakash Sharma
On 5/13/16, 3:11 AM

let's take an example 

    def redirect_partner_form(self, cr, uid, partner_id, context=None):     
value = {
'domain': "[]",
'view_type': 'form',
'view_mode': 'form,tree',
'res_model': 'res.partner',
'res_id': int(partner_id),
'view_id': False,
'context': context,
'type': 'ir.actions.act_window',
return value

Here in odoo while opening a specific  record of model we can pass the model name and it's res_id for open the record.

I hope this may help in your case.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 5/13/16, 1:42 AM
Seen: 797 times
Last updated: 5/26/16, 12:48 AM