diff --git a/geoengine_partner/README.rst b/geoengine_partner/README.rst new file mode 100644 index 0000000000..4e9bcad68f --- /dev/null +++ b/geoengine_partner/README.rst @@ -0,0 +1,73 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +============================== +Geospatial support of partners +============================== + +Geolocalise your partner. + + +Installation +============ + +Take a look at the installation section in the description of the module +'base_geoengine'. + +Usage +===== + +* Open a partner form +* Go in `Geoengine Map` tab +* Change to edit mode +* Click on the map to add a point. + +To remove the point click on the trash bin. +To edit the point drag and drop it. + + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/115/9.0 + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed feedback. + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* Guewen Baconnier +* Jordi Riera +* Laurent Mignon +* Nicolas Bessi +* Sandy Carter +* Yannick Vaucher +* Pierre Verkest + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/geoengine_partner/__init__.py b/geoengine_partner/__init__.py new file mode 100644 index 0000000000..0650744f6b --- /dev/null +++ b/geoengine_partner/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/geoengine_partner/__manifest__.py b/geoengine_partner/__manifest__.py new file mode 100644 index 0000000000..80d76e6f02 --- /dev/null +++ b/geoengine_partner/__manifest__.py @@ -0,0 +1,14 @@ +# Copyright 2011-2017 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) +{ + "name": "Geospatial support of partners", + "version": "16.0.1.0.1", + "category": "GeoBI", + "author": "Camptocamp, Odoo Community Association (OCA)", + "license": "AGPL-3", + "website": "https://github.com/OCA/geospatial", + "depends": ["base", "base_geoengine"], + "data": ["views/partner.xml"], + "installable": True, + "application": True, +} diff --git a/geoengine_partner/i18n/geoengine_partner.pot b/geoengine_partner/i18n/geoengine_partner.pot new file mode 100644 index 0000000000..fdd7087aba --- /dev/null +++ b/geoengine_partner/i18n/geoengine_partner.pot @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * geoengine_partner +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: geoengine_partner +#: model:ir.model.fields,field_description:geoengine_partner.field_res_partner_geo_point +#: model:ir.model.fields,field_description:geoengine_partner.field_res_users_geo_point +msgid "Address coordinates" +msgstr "" + +#. module: geoengine_partner +#: model:ir.model,name:geoengine_partner.model_res_partner +msgid "Partner" +msgstr "" + +#. module: geoengine_partner +#: model:geoengine.raster.layer,name:geoengine_partner.geoengine_raster_layer_res_partner_osm +msgid "Partner background" +msgstr "" + +#. module: geoengine_partner +#: model:geoengine.vector.layer,name:geoengine_partner.geoengine_vector_layer_res_partner +msgid "Partner location" +msgstr "" + diff --git a/geoengine_partner/models/__init__.py b/geoengine_partner/models/__init__.py new file mode 100644 index 0000000000..4da81fa310 --- /dev/null +++ b/geoengine_partner/models/__init__.py @@ -0,0 +1 @@ +from . import partner diff --git a/geoengine_partner/models/partner.py b/geoengine_partner/models/partner.py new file mode 100644 index 0000000000..5865fd7ca3 --- /dev/null +++ b/geoengine_partner/models/partner.py @@ -0,0 +1,12 @@ +# Copyright 2011-2017 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + +from odoo import fields, models + + +class ResPartner(models.Model): + """Add geo_point to partner using a function filed""" + + _inherit = "res.partner" + + geo_point = fields.GeoPoint("Address coordinates") diff --git a/geoengine_partner/static/description/icon.png b/geoengine_partner/static/description/icon.png new file mode 100644 index 0000000000..b698310eef Binary files /dev/null and b/geoengine_partner/static/description/icon.png differ diff --git a/geoengine_partner/views/partner.xml b/geoengine_partner/views/partner.xml new file mode 100644 index 0000000000..1a48dcb824 --- /dev/null +++ b/geoengine_partner/views/partner.xml @@ -0,0 +1,74 @@ + + + + geo_partner_form + res.partner + + + + + + + + + + + + Partner view + + + + + + + + + + + + + + Name: + +
    +
  • Title:
  • +
  • Function:
  • +
  • Website:
  • +
  • ZIP:
  • +
  • City:
  • +
  • Country:
  • +
+
+
+
+
+ + res.partner +
+ + + + Partner location + + + basic + + 0.8 + + #FF680A + + + osm + Partner background + + + + +
diff --git a/setup/geoengine_partner/odoo/addons/geoengine_partner b/setup/geoengine_partner/odoo/addons/geoengine_partner new file mode 120000 index 0000000000..9efb70b711 --- /dev/null +++ b/setup/geoengine_partner/odoo/addons/geoengine_partner @@ -0,0 +1 @@ +../../../../geoengine_partner \ No newline at end of file diff --git a/setup/geoengine_partner/setup.py b/setup/geoengine_partner/setup.py new file mode 100644 index 0000000000..28c57bb640 --- /dev/null +++ b/setup/geoengine_partner/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)