Skip to Content
Menu
This question has been flagged
2 Replies
12115 Views

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

Avatar
Discard
Best Answer

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.

Avatar
Discard
Author Best Answer

<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


Avatar
Discard