Replies: 1 comment 6 replies
-
Hi @AdminABT One possible way is to define class TheCarGeolocation(models.Model):
_name = 'the.car.geolocation'
latitude = fields.Float()
longitude = fields.Float()
thecar_id = fields.Many2one('the.car', required=True)
class TheCar(models.Model):
_name = 'the.car'
car_geolocation = fields.One2many('the.car.geolocation', 'thecar_id') Some where inside <field name="car_geolocation" mode="google_map"/> I know this solution is not the best one but it works I will try to check, maybe it's a new widget. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @gityopie
Nice development on this Odoo / Google integration
I am trying to use the web_google_maps add-on in the Odoo 15 Enterprise version in order to deploy the Map under a Form view for a custom object.
As an example, I have a Car object with his Lat/Lon as attributes and am trying to have a way to display where the car is within its form view
Somehow I ma struggeling to have it working. Would you mind confirming if such is achievable with your baseline ?
Beta Was this translation helpful? Give feedback.
All reactions