Skip to content Skip to sidebar Skip to footer

Onclick Of Lead Couldn't Get The Details Of Lead In Custom Module In Openerp

I'm creating a custom module and trying to convert the Lead to Opportunity.Now i'm fetching all the leads and showing like in img1. But actually i want to display like img2 and on

Solution 1:

you only need one menuitem to show your leads (you can create from within it).

so first the action:

<recordid="show_lead"model="ir.actions.act_window"><fieldname="name">Lead</field><fieldname="type">ir.actions.act_window</field><fieldname="res_model">crm.lead</field><fieldname="view_type">form</field><fieldname="view_mode">form,tree</field><fieldname="view_id"ref="crm_case_tree_view_oppor_extended"/></record>

and the menuitem:

<menuitem name="Show Lead"id="show_leads" parent="sub_menu_lead" action="show_lead"/>

just delete the create_lead action and menuitem

and a little hint: if you got xml errors, go to the stacktrace riiiiight before the output of the xml part (the record where the error belongs to) and you will mostly find the real error message like "can't find field anyfield in model anymodel"

Post a Comment for "Onclick Of Lead Couldn't Get The Details Of Lead In Custom Module In Openerp"