From 6de32b8afef467a08653e71f71e6c46d3ae173dc Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sun, 21 Jun 2015 00:57:05 +0200 Subject: [PATCH] FIX domain declaration --- partner_external_maps/partner_external_maps.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/partner_external_maps/partner_external_maps.py b/partner_external_maps/partner_external_maps.py index 6c5ec52e4..5ad7c5ff0 100644 --- a/partner_external_maps/partner_external_maps.py +++ b/partner_external_maps/partner_external_maps.py @@ -56,21 +56,21 @@ class ResUsers(models.Model): # begin with context_ to allow user to change it by himself context_map_website_id = fields.Many2one( - 'map.website', string='Map Website') + 'map.website', string='Map Website', + domain=[ + '|', ('address_url', '!=', False), ('lat_lon_url', '!=', False)]) # We want to give the possibility to the user to have one map provider for # regular maps and another one for routing context_route_map_website_id = fields.Many2one( 'map.website', string='Route Map Website', domain=[ - '|', ('address_url', '!=', False), ('lat_lon_url', '!=', False)], + '|', + ('route_address_url', '!=', False), + ('route_lat_lon_url', '!=', False)], help="Map provided used when you click on the car icon on the partner " "form to display an itinerary.") context_route_start_partner_id = fields.Many2one( - 'res.partner', string='Start Address for Route Map', - domain=[ - '|', - ('route_address_url', '!=', False), - ('route_lat_lon_url', '!=', False)]) + 'res.partner', string='Start Address for Route Map') @api.model def _default_map_settings(self):