Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] - geoengine_partner #331

Merged
merged 37 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
94dbcc2
[ADD] Beta support of geonames geoencoding
nbessi Jan 28, 2012
e897147
[ADD] geoname bulk wizzard + small fixes
nbessi Feb 1, 2012
3780ec7
[IMP] added geo_point function fields to partner
nbessi Feb 2, 2012
8387ecd
[IMP] related field support
nbessi Feb 2, 2012
146c547
[IMP] demo is now self-contained + fix in __openerp__.py
nbessi Feb 6, 2012
1925482
[FIX] missing file during merge trouble
nbessi Feb 9, 2012
b07a817
[IMP] __openerp__ icon and coding
nbessi Feb 9, 2012
2254f68
[FIX] import to be compatible with python 2.6 amnd 2.7
nbessi Apr 19, 2012
5908fff
[FIX] license in geoengine_partner
Oct 1, 2012
bccbeb1
[INIT] V7.0 serie
nbessi Dec 28, 2012
7158567
Fixed warnings and view. Still has js errors.
Sep 13, 2013
7f6e047
Using geoengine view properly
Sep 16, 2013
6a60970
[FIX] Made geo_partner installable
Sep 25, 2013
0fc3ae1
[IMP] Partner geo view simplified by removing depricated address laye…
Sep 26, 2013
959fb90
[FIX] installable state of addons to be uninstallable. They do not ma…
nbessi Sep 27, 2013
f3c3ebb
Rename all addons to xxx_unported to be travis compliant
nbessi Jun 30, 2014
17c318a
Revert "Rename all addons to xxx_unported to be travis compliant"
Jul 2, 2014
783f686
[FIX] move all unported addons into __unported__ folder instead of ad…
Jul 2, 2014
391be0c
[FIX] move all addons from __unported__
lmignon Mar 4, 2015
824a045
[FIX] Use absolute imports on opnerp.addons
lmignon Mar 6, 2015
8cb6fab
[FIX] Uses the new API
lmignon Mar 5, 2015
3e1f746
[IMP] Move icons to static/description.
Mar 9, 2015
fb66afd
[IMP] Extract description in __openerp__.py to README.rst
lmignon Mar 10, 2015
672ce90
[FIX] list all know contributors from git
lmignon Mar 10, 2015
d729542
[FIX] Add bug tracker url to the module description
lmignon Jun 2, 2015
b9c80f9
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
fa840c7
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
948a266
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
21dffbf
Remove google raster layer deprecated option
yvaucher Oct 8, 2016
f2e86d9
[MIG][9.0] geoengine_partner
yvaucher Feb 17, 2017
914728d
[10.0][MIG] geoengine_partner
Apr 5, 2017
772a5fc
[UPD] Update geoengine_partner.pot
oca-travis Mar 29, 2019
0ab52ba
[FIX] demo data: unknown field 'symbol_binary'
lmignon Jun 19, 2020
70e5465
geoengine_partner 10.0.1.0.1
OCA-git-bot Jun 19, 2020
d42ce65
[UPD] Update geoengine_partner.pot
oca-travis Jun 19, 2020
c22a652
[16.0][MIG] - geoengine_partner
sbejaoui Mar 6, 2023
3174ea0
[IMP] improve partner geoengine view
sbejaoui Nov 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions geoengine_partner/README.rst
Original file line number Diff line number Diff line change
@@ -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
lmignon marked this conversation as resolved.
Show resolved Hide resolved

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/geospatial/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 <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.

Contributors
------------

* Guewen Baconnier <[email protected]>
* Jordi Riera <[email protected]>
* Laurent Mignon <[email protected]>
* Nicolas Bessi <[email protected]>
* Sandy Carter <[email protected]>
* Yannick Vaucher <[email protected]>
* Pierre Verkest <[email protected]>

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.
1 change: 1 addition & 0 deletions geoengine_partner/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
14 changes: 14 additions & 0 deletions geoengine_partner/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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,
}
36 changes: 36 additions & 0 deletions geoengine_partner/i18n/geoengine_partner.pot
Original file line number Diff line number Diff line change
@@ -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"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Project-Id-Version: Odoo Server 10.0\n"
"Project-Id-Version: Odoo Server 16.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 ""

1 change: 1 addition & 0 deletions geoengine_partner/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import partner
12 changes: 12 additions & 0 deletions geoengine_partner/models/partner.py
Original file line number Diff line number Diff line change
@@ -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")
Binary file added geoengine_partner/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 72 additions & 0 deletions geoengine_partner/views/partner.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record model="ir.ui.view" id="geo_partner_view_form">
<field name="name">geo_partner_form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<notebook>
<page
string="Geoengine Map"
name="geoengine_map"
groups="base_geoengine.group_geoengine_user,base_geoengine.group_geoengine_admin"
>
<field name="geo_point" />
</page>
</notebook>
</field>
</record>

<record id="ir_ui_view_geo_partner" model="ir.ui.view">
<field name="name">Partner view</field>
<field name="arch" type="xml">
<geoengine>
sbejaoui marked this conversation as resolved.
Show resolved Hide resolved
<field name="name" select="1" />
<field name="title" />
<field name="function" />
<field name="website" />
<field name="zip" />
<field name="city" />
<field name="country_id" />
sbejaoui marked this conversation as resolved.
Show resolved Hide resolved
<field name="geo_point" />
<templates>
<t t-name="info_box">
<b>
Name: <field name="name" />
</b>
<ul>
<li>Title: <field name="title" /> </li>
<li>Function: <field name="function" /> </li>
<li>Website: <field name="website" /> </li>
<li>ZIP: <field name="zip" /> </li>
<li>City: <field name="city" /> </li>
<li>Country: <field name="country_id" /> </li>
</ul>
</t>
</templates>
</geoengine>
</field>
<field eval="16" name="priority" />
<field name="model">res.partner</field>
</record>

<record id="geoengine_vector_layer_res_partner" model="geoengine.vector.layer">
<field
name="geo_field_id"
ref="geoengine_partner.field_res_partner__geo_point"
/>
<field name="name">Partner location</field>
<field eval="6" name="sequence" />
sbejaoui marked this conversation as resolved.
Show resolved Hide resolved
<field name="view_id" ref="ir_ui_view_geo_partner" />
<field name="geo_repr">basic</field>
sbejaoui marked this conversation as resolved.
Show resolved Hide resolved
<field eval="1" name="nb_class" />
<field name="begin_color">#FF680A</field>
sbejaoui marked this conversation as resolved.
Show resolved Hide resolved
</record>
<record id="geoengine_raster_layer_res_partner_osm" model="geoengine.raster.layer">
<field name="raster_type">osm</field>
<field name="name">Partner background</field>
<field name="view_id" ref="ir_ui_view_geo_partner" />
<field eval="0" name="overlay" />
</record>

</odoo>
1 change: 1 addition & 0 deletions setup/geoengine_partner/odoo/addons/geoengine_partner
6 changes: 6 additions & 0 deletions setup/geoengine_partner/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
Loading