Tutorial: Map View
Learn how to create and use map views in Odoo
Map View
Enterprise
Geographic
⚠️ Note: Map views require Odoo Enterprise Edition!
Overview
This tutorial module teaches you how to create map views in Odoo. Map views display records as pins on a geographic map, perfect for visualizing customer locations, delivery routes, and sales territories.
What You'll Learn
- Adding address fields for geocoding
- Computing complete addresses from partner data
- Map view XML definition and attributes
- Configuring res_partner for map pins
- Enabling routing between locations
- Popup fields configuration
Contains
- New Map view on quotations/sales orders
- Computed field "contact_address_complete"
- Related latitude/longitude fields
- Menu item for Sales Map view
Key Code Example
<map res_partner="partner_id" routing="true">
<field name="name" string="Order"/>
<field name="partner_id" string="Customer"/>
<field name="contact_address_complete"/>
<field name="amount_total" string="Total"/>
</map>
Technical Information
padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background: #f5f7fa; } .container { max-width: 1200px; margin: 0 auto; background: white; } .banner { width: 100%; height: auto; display: block; } .content { padding: 40px 60px; } .header { text-align: center; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 3px solid #22c55e; } .header h1 { font-size: 2.5em; color: #1e293b; margin-bottom: 10px; } .header .tagline { font-size: 1.2em; color: #64748b; } .badge { display: inline-block; background: #22c55e; color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.9em; margin: 5px; } .section { margin-bottom: 40px; } .section h2 { font-size: 1.8em; color: #22c55e; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #e2e8f0; } .section h3 { font-size: 1.3em; color: #334155; margin: 20px 0 10px 0; } .section p, .section ul { font-size: 1.05em; color: #475569; margin-bottom: 15px; } .section ul { list-style: none; padding-left: 0; } .section ul li { padding: 8px 0 8px 25px; position: relative; } .section ul li:before { content: "✓"; position: absolute; left: 0; color: #22c55e; font-weight: bold; } .alert { background: #fef3c7; border-left: 4px solid #f59e0b; padding: 15px; border-radius: 8px; margin: 15px 0; } .code-box { background: #f8fafc; padding: 20px; border-left: 4px solid #22c55e; border-radius: 8px; margin: 15px 0; } .code-box code { font-family: 'Courier New', Courier, monospace; font-size: 0.95em; } .footer { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); color: white; padding: 30px 60px; text-align: center; } .footer a { color: white; text-decoration: none; font-weight: bold; }
Tutorial: Map View
Learn how to create and use map views in Odoo
Map View
Enterprise
Geographic
⚠️ Note: Map views require Odoo Enterprise Edition!
Overview
This tutorial module teaches you how to create map views in Odoo. Map views display records as pins on a geographic map, perfect for visualizing customer locations, delivery routes, and sales territories.
What You'll Learn
- Adding address fields for geocoding
- Computing complete addresses from partner data
- Map view XML definition and attributes
- Configuring res_partner for map pins
- Enabling routing between locations
- Popup fields configuration
Contains
- New Map view on quotations/sales orders
- Computed field "contact_address_complete"
- Related latitude/longitude fields
- Menu item for Sales Map view
Key Code Example
<map res_partner="partner_id" routing="true">
<field name="name" string="Order"/>
<field name="partner_id" string="Customer"/>
<field name="contact_address_complete"/>
<field name="amount_total" string="Total"/>
</map>
Technical Information
Version: 19.0.1.0.0
Dependencies: sale
License: OPL-1
Please log in to comment on this module