Hi,
I receive following error when I try to call my function to update some fields "Private methods (such as _get_coords_from_address) cannot be called remotely." Any ideas ? Thanks
@api.one
def _get_coords_from_address(self):
if self.full_address != None:
lat_long = geocoder.google(self.full_address)
# self.lat_long = lat_long.latlng
self.write({'lat_long': lat_long.latlng})
<button string="Map Coordinates" type="object" name="_get_coords_from_address" class="oe_stat_button" />