Hi,
In crm.lead i go with somethink like this:
_inhrerit = 'crm.lead'
_columns = {
'parent_id': fields.many2one('crm.lead', 'Parent', ondelete='cascade'),
'opportunity_ids': fields.one2many('crm.lead','parent_id','Opportunities', domain=[('type','=','opportunity')]),
}
in Leads Form View i have added
<field name="opportunity_ids" />
It works but i need view from opportunity, not lead. I see this field in my view but it shows me like 'lead tree view' and after click 'create' button i see 'lead form view' - not opportunity. How to change it to opportunity tree/form view?