Dave Lasley
7 years ago
No known key found for this signature in database
GPG Key ID: 7DDBA4BA81B934CF
2 changed files with
6 additions and
16 deletions
-
base_partner_validate_address/README.rst
-
base_partner_validate_address/wizards/wizard_address_validate.py
|
|
@ -8,12 +8,8 @@ Base Partner Validate Address |
|
|
|
|
|
|
|
Adds an abstract core for address verification via remote interfaces. |
|
|
|
|
|
|
|
Installation |
|
|
|
============ |
|
|
|
|
|
|
|
|
|
|
|
Configuration |
|
|
|
============= |
|
|
|
This is a technical module that is meant to provide a base for other modules. It does |
|
|
|
not provide any functionality on its own. |
|
|
|
|
|
|
|
Usage |
|
|
|
===== |
|
|
@ -22,16 +18,6 @@ Usage |
|
|
|
:alt: Try me on Runbot |
|
|
|
:target: https://runbot.odoo-community.org/runbot/149/10.0 |
|
|
|
|
|
|
|
Known Issues / Roadmap |
|
|
|
====================== |
|
|
|
|
|
|
|
Known Issues |
|
|
|
------------ |
|
|
|
|
|
|
|
|
|
|
|
Roadmap |
|
|
|
------- |
|
|
|
|
|
|
|
Bug Tracker |
|
|
|
=========== |
|
|
|
|
|
|
|
|
|
@ -67,10 +67,12 @@ class WizardAddressValidate(models.TransientModel): |
|
|
|
latitude_original = fields.Float( |
|
|
|
string='Latitude', |
|
|
|
related='partner_id.latitude', |
|
|
|
readonly=True, |
|
|
|
) |
|
|
|
longitude_original = fields.Float( |
|
|
|
string='Longitude', |
|
|
|
related='partner_id.longitude', |
|
|
|
readonly=True, |
|
|
|
) |
|
|
|
|
|
|
|
@api.model |
|
|
@ -117,6 +119,8 @@ class WizardAddressValidate(models.TransientModel): |
|
|
|
'state_id': record.state_id.id, |
|
|
|
'country_id': record.country_id.id, |
|
|
|
'zip': record.zip, |
|
|
|
'latitude': record.latitude, |
|
|
|
'longitude': record.longitude, |
|
|
|
}) |
|
|
|
return { |
|
|
|
'type': 'ir.actions.act_window_close', |
|
|
|