Skip to content
Advertisement

Odoo14 action_set_won_rainbowman is not a valid action on crm.lead.result

I’m building a custom module to include tree view inside crm.lead that can insert few data inside, but when i try to install it i got the following issue.

action_set_won_rainbowman is not a valid action on crm.lead.result

JavaScript

as my view looks like

JavaScript

and my module looks like

JavaScript

can anyone help me what i missed in that? “i need only to view results for same lead id”…

Thanks in advance

Advertisement

Answer

You are inheriting form view of crm.lead and given model id of crm.lead.result. So, change model id to crm.lead in view. Also if you want to add page view inside notebook then you need to add your one2many field inside page .see below example.

JavaScript
Advertisement