Skip to content
Permalink
Browse files

[IMP] moved the definiton of "partner_latitude" and "partner_longitud…

…e" from

base_geolocalise to base/res.partner
I was done because the Map_view needed those fields and needed to be installed by
default thus map_view could not depend on base_geolocalise
  • Loading branch information...
Thomas Werland
Thomas Werland committed May 9, 2019
1 parent 87c4e51 commit 81c32159c0be47c58ed85a447fdeba0887eb2739
Showing with 2 additions and 2 deletions.
  1. +0 −2 addons/base_geolocalize/models/res_partner.py
  2. +2 −0 odoo/addons/base/models/res_partner.py
@@ -4,8 +4,6 @@
class ResPartner(models.Model):
_inherit = "res.partner"

partner_latitude = fields.Float(string='Geo Latitude', digits=(16, 5))
partner_longitude = fields.Float(string='Geo Longitude', digits=(16, 5))
date_localization = fields.Date(string='Geolocation Date')

@api.model
@@ -193,6 +193,8 @@ def _split_street_with_params(self, street_raw, street_format):
city = fields.Char()
state_id = fields.Many2one("res.country.state", string='State', ondelete='restrict', domain="[('country_id', '=?', country_id)]")
country_id = fields.Many2one('res.country', string='Country', ondelete='restrict')
partner_latitude = fields.Float(string='Geo Latitude', digits=(16, 5))
partner_longitude = fields.Float(string='Geo Longitude', digits=(16, 5))
email = fields.Char()
email_formatted = fields.Char(
'Formatted Email', compute='_compute_email_formatted',

0 comments on commit 81c3215

Please sign in to comment.
You can’t perform that action at this time.