Skip to Content
Menu
This question has been flagged
968 Views

I want to show the customer list in map view in Wizard box. But map is not showing but the customer list is showing. Here is my sample code : 

def btn_optimize_route(self):
partners = self.partner_ids
view_id = self.env.ref('fs_route_plan.route_customer_map_view').id
return {
'name': 'Customers',
'type': 'ir.actions.act_window',
'res_model': 'res.partner',
'domain': [('id', 'in', partners.ids)],
'view_mode': 'form',
'views': [
[(view_id), 'map']
],
'target' : 'new'
}

How can I show the map in wizard please?

Avatar
Discard