Skip to content
Snippets Groups Projects
Commit e5796429 authored by Swapnesh Shah's avatar Swapnesh Shah Committed by Nasreddin (bon)
Browse files

[FIX] base: Wrong 'default_type' on create kanban stage grouped by 'Customer'


Issue

	Step done with "CRM" since main kanban view can be
	grouped by 'res.partner' model:

	- Install "CRM" app
	- Go to crm and group by "Customer".
	- Add a Column.

	Traceback is raised.

Cause

	Wrong "default_type" in context ('opportunity' in this case)
	when creating new kanban stage and grouped by "Customer".

Solution

	On "default_get" for "res.partner", if "default_type" is in
	context and not in 'type' selection choices field; then
	remove it from context.

Cherry-pick of #47723 in 12.0

opw-2256905

closes odoo/odoo#51673

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 3f952ef4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment