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

[15.0][MIG] base_geoengine: Migration to 15.0 #391

Open
wants to merge 451 commits into
base: 15.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
451 commits
Select commit Hold shift + click to select a range
78ad95d
Fix tab event listener to display map widget in form view in last tabs
yvaucher Dec 7, 2015
413e598
[FIX] display translation of field string instead of field name and d…
yvaucher Jan 22, 2016
b212201
[FIX] base_geoengine - allow to use multiple icons on your maps
yvaucher Jan 25, 2016
868747d
Allow to drag pan through polygons
yvaucher Jan 27, 2016
d5d5585
By default use OSM
yvaucher Feb 12, 2016
e4d6a71
Fix path of openerp for doc build
yvaucher Feb 15, 2016
c798597
Remove google from selection as it is currently broken
yvaucher Feb 16, 2016
8db8fde
Add geo_contains operator to geo_search method.
yvaucher Feb 16, 2016
e19761a
Refactor WMTS to be able to add a generic config
yvaucher Feb 10, 2016
ae38e79
Add a button on map widget to clear geometry from the map
yvaucher Feb 24, 2016
f53db89
Fix _setup_fields signature due to OCA/OCB@87d160a
yvaucher Apr 20, 2016
9a0dabb
Bump version
yvaucher Apr 20, 2016
dc94f97
Adapt test to mandatory partial attribute in _setup_fields
yvaucher Apr 20, 2016
746d685
Fix srid value read which was unset in field properties
yvaucher Feb 12, 2016
7ebb274
Add parameters to define extends and projection
yvaucher Feb 12, 2016
8ae9a04
Adapt tests
yvaucher Apr 20, 2016
7da9b68
Bump version
yvaucher Apr 20, 2016
39d3fb5
Target only the right tab where the map is to add listener.
yvaucher Feb 17, 2016
fa4e573
Ensure we call add_tab_listener only once
fredj Feb 17, 2016
1aa10de
Address the right container when drawing the widget map
yvaucher Apr 21, 2016
dbe4d4a
Fix widget initialized too early in second tab thus having bad size
yvaucher Apr 21, 2016
e3716e6
Fix offset issues on the map by reseting offset when scroll bar is used
yvaucher Apr 22, 2016
cb8c242
Don't zoom when setting or changing a geometry
yvaucher Apr 22, 2016
7734aae
Add an option to set a default zoom to avoid showing a map that you a…
yvaucher Apr 22, 2016
4d5ac14
No key argument in js, set an optional argument instead with default …
yvaucher Apr 27, 2016
60b7ea7
Add an action on map info box to open the selected object in form view
yvaucher May 31, 2016
69a4045
Update Roadmap
yvaucher May 31, 2016
bd69589
Bump version
yvaucher Jun 1, 2016
357b23a
Fix z-index of Openlayers map container to ensure it doesn't hide sea…
yvaucher Jul 13, 2016
be16a1e
Fix unitialized map on 2nd tab of popup forms
yvaucher Jul 14, 2016
c6cc97a
Bump version
yvaucher Jul 29, 2016
39d72c4
Fix geoengine tests with addition of default_zoom
yvaucher Sep 1, 2016
551df18
[FIX] from_latlon method srdi was incorrect
alan196 Sep 10, 2016
023a0fa
[MIG] Make modules uninstallable
pedrobaeza Oct 6, 2016
127c855
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
810b13c
[IMP] OL3
lmignon Jun 23, 2015
96ea3f1
Remove disabling stopdown as it is included in OL3
yvaucher Oct 3, 2016
6e91bbb
Add click on feature event
lmignon Oct 3, 2016
f5592a6
Fix Mapinfo box + set cursor pointer
yvaucher Oct 3, 2016
c3dd27b
[FIX] map styling and fullscreen mode
lmignon Jun 25, 2015
11bf2ce
chromojs
lmignon Jun 28, 2015
a31232b
FIX legend
lmignon Jul 2, 2015
ccaa6f0
bump OL version to 3.18.2
damdam-s Oct 3, 2016
bd3934b
fitExtent is deprecated by fit
yvaucher Oct 4, 2016
0309e77
Remove MapQuest
Oct 4, 2016
b087d56
Fix Represenation Mode colored label
Oct 4, 2016
f61bfb0
Fix map size error when open record in a fullscreen map.
Oct 4, 2016
1fc9d0d
Add selection controlers
yvaucher Sep 1, 2016
6008ef4
Change display of map box info if multiple features are selected
yvaucher Sep 1, 2016
79a7d3a
Fix css missing bracket
yvaucher Oct 4, 2016
463fc3e
Add button to filter by selected geo features
yvaucher Sep 2, 2016
1797ebc
Implement button to switch in box selection
yvaucher Sep 5, 2016
47a34c2
Improve button to filter features
yvaucher Sep 5, 2016
c3cb369
Fix feature counter on view map
yvaucher Oct 4, 2016
fca7f1a
Port creation of filter on selection
yvaucher Oct 4, 2016
1093df9
Improve filter selection button to fix with open single element button
yvaucher Oct 4, 2016
2355f7f
Fix extent error when no feature are present
yvaucher Oct 4, 2016
7c0579c
Set fa icon for geo selection filter
yvaucher Oct 4, 2016
a66adac
Add a selection dragbox when holding SHIFT
yvaucher Oct 4, 2016
d528f9c
[IMP] multi layer selection of records on Geoengine map
yvaucher Oct 4, 2016
45f186b
geoengine widget first part:
damdam-s Oct 5, 2016
7cf486c
Remove ol alias
yvaucher Oct 6, 2016
93deaf7
Define edit layer of geoengine widget
yvaucher Oct 7, 2016
b82f147
Add modify interaction on geoengine widget (modify interaction needs …
yvaucher Oct 8, 2016
62d8d64
Add comment on restrictedExtent
yvaucher Oct 8, 2016
d29ef97
Remove former fix for scrolling as it is not needed with OL3
yvaucher Oct 8, 2016
e65c20c
remove comment
yvaucher Oct 8, 2016
48d0b10
Remove google raster layer deprecated option
yvaucher Oct 8, 2016
c40cc50
Remove former ol2 and unused libraries
yvaucher Oct 8, 2016
65757c1
Fix onchange for modify control
yvaucher Oct 9, 2016
1f5768e
Fix geostat color legend position
yvaucher Oct 9, 2016
b80bfa5
Reimplement button to clear geometry from edition widget
yvaucher Oct 9, 2016
c5f1ffe
Update license headers
yvaucher Oct 14, 2016
d3fade3
[PORT] base_geoengine to 10.0 - remove old API
yvaucher Oct 22, 2016
c314341
jslint
yvaucher Oct 24, 2016
c239ca7
[FIX] #132: geo columns were created by odoo base models
Apr 5, 2017
805c69c
[FIX] Column should be created if GeoField is computed and stored
benwillig Aug 10, 2017
07bc2a7
[FIX] Cache value for a geo field should be the the hex code. convert…
benwillig Aug 10, 2017
14bdf3c
[ADD] New method to convert 2 points to a LineString
benwillig Aug 10, 2017
30ed0ff
[FIX] Fixed tests. Added new tests for new methods
benwillig Aug 10, 2017
49b7704
[FIX] Pylint
benwillig Aug 10, 2017
0b296e4
[FIX] Handle convert_to_record case when there is no value or if it's…
benwillig Aug 10, 2017
b8c4c37
[FIX] Do not hardcode string during line creation from points
benwillig Aug 10, 2017
d7e88b2
[IMP] Allow to define layers which will be active on startup
benwillig Aug 10, 2017
0ce7d1e
[ADD] Allow to display a configurable popup on map layers.
benwillig Aug 21, 2017
2f50032
[IMP] Allow to change the size of the drawn circle
benwillig Sep 6, 2017
8572ab8
[IMP] Allow to pass a specific srid to GeoLine.from_points method
benwillig Sep 18, 2017
643064b
[Add] Allow to display labels on polygons for layers
dek-odoo Apr 1, 2018
b034a90
[FIX] Replace openerp imports
ecino Apr 20, 2018
ec2d3b5
Fix Lint & Travis CI issues
dek-odoo Jun 16, 2018
04e43ab
[10, Add] Allow to set opacity on layers (#165)
dek-odoo Jul 3, 2018
700dad7
[FIX] typo in base_geoengine javascript. (#166)
ecino Jul 4, 2018
b12e276
Play python 2to3
Tonow-c2c Oct 1, 2018
d30350b
Remove coding: utf-8
Tonow-c2c Oct 1, 2018
4cc809b
Readme split in readme folder
Tonow-c2c Oct 1, 2018
d772d80
Fix signature change on _setup_fields
yvaucher Oct 1, 2018
08906e4
_select_column_data is replaced by tools.table_columns
yvaucher Oct 1, 2018
202f390
Change signature of convert_to_column to to introduction of multi val…
yvaucher Oct 1, 2018
0428cef
Use new MVC approach
yvaucher Oct 1, 2018
efa71a2
Fix geoengine view for Odoo 11
asaunier Oct 24, 2018
515cf94
Fix geoengine widget for Odoo 11
asaunier Oct 31, 2018
bf184e3
Reorganise geoengine files
asaunier Nov 1, 2018
15d4b04
Add base_geoengine README back
asaunier Nov 1, 2018
44817ea
Add support of onchange requests to convert_to_record
asaunier Nov 6, 2018
b77e435
Update WMTS backgrounds creation
asaunier Nov 7, 2018
96236b4
Fix JS lint errors
asaunier Nov 7, 2018
79948f5
Fix travis tests
asaunier Nov 8, 2018
0e92e20
Fix layer switcher
asaunier Nov 8, 2018
11e4a7a
Improve handling of maps in tabs
asaunier Nov 9, 2018
508a57e
Improve WMTS background layers creation
asaunier Nov 9, 2018
f41d823
Upgrade to OL 3.20.1
asaunier Nov 9, 2018
bf19b79
Move base_geoengine tests to a dedicated module
asaunier Jan 10, 2019
17e7a9d
[IMP] Add custom type support for colored render
Dec 14, 2018
10138ea
Move base_geoengine readme in the right folder
yvaucher Feb 25, 2019
a4feac2
[UPD] README.rst
OCA-git-bot Feb 25, 2019
0e55325
Add USAGE in base_geoengine
yvaucher Feb 25, 2019
f5bcd90
[UPD] README.rst
OCA-git-bot Feb 25, 2019
ca90c0c
Mig base_geoengine to version 12.0
yvaucher Feb 23, 2019
8a9643e
Add geo fields to odoo.fields
yvaucher Feb 23, 2019
f394a98
Use intheritance of 'base' for GeoModel
yvaucher Feb 23, 2019
4848742
Avoid creation of columns on abstract models
yvaucher Feb 23, 2019
9c36451
pyeval was renamed pyUtils
yvaucher Feb 23, 2019
1808483
Make MissingError translatable for auto install of postgis extension,…
yvaucher Feb 25, 2019
947c4e3
Simplify super calls with python 3 syntax
yvaucher Feb 25, 2019
130ccf3
Use EPSG:3857 instead of EPSG:900913
fredj Feb 25, 2019
45f2d08
Remove server_resolutions field in WMTS options
fredj Feb 28, 2019
007f1dc
Update OL version to OL 4.6.5
yvaucher Mar 22, 2019
15a6aab
JS lint
yvaucher Mar 21, 2019
66a64eb
Fix dimension field label
yvaucher Mar 22, 2019
14d42cd
Give description to geoengine view models
yvaucher Mar 22, 2019
37e886c
Fix duplicate title in README.rst
yvaucher Mar 22, 2019
838a1f5
Remove double title in README.rst - in source too this time
yvaucher Mar 29, 2019
5e3ed8e
[12.0][ADD] Support of Swisstopo layers
asaunier Mar 18, 2019
7181703
Fix selection of ttype field on ir.model.fields
yvaucher May 1, 2019
66aa395
Bump version
yvaucher May 22, 2019
565ae13
[13.0][MIG] base_geoengine
Oct 1, 2019
e158e5c
Fix state of field for geo field to 'base'
yvaucher Sep 29, 2019
149743d
Remove view_type from views
Jan 23, 2020
463741c
run pre-commit
Jan 14, 2020
26c1c95
Fix Selection field display value in map info_box
yvaucher Oct 18, 2019
973a17c
[fix] displaying relation fields in map info box - fixes #224
alpham-andela Jan 10, 2020
6dd65c6
FIX: Refresh geoengine widget after changing record through pager action
grindtildeath Dec 11, 2019
1479ce8
FIX: Call render instead of renderMap to ensure geometries layers are…
grindtildeath Jan 13, 2020
f044e79
remove executable permission from geoenigine_record.js
Jan 14, 2020
5c664d8
pre-commit with correct config
Jan 14, 2020
b7d7289
Fix geometry field creation missing configurations
yvaucher Oct 1, 2019
c1363e9
pre-commit
Jan 15, 2020
49443f6
[12.0][IMP] Use default zoom when creating a map with no geometry
asaunier Oct 31, 2019
137ae3a
base_geoengine 13.0.1.0.1
OCA-git-bot Feb 25, 2020
d6348a4
[IMP] base_geoengine: remove unnecessary hack
Creamaster May 14, 2020
bc57a19
[UPD] Update base_geoengine.pot
oca-travis Jun 8, 2020
3638ade
Fix default_extent in views
TDu Jun 10, 2020
2172b5d
base_geoengine 13.0.1.0.2
OCA-git-bot Jun 10, 2020
53da258
[LINT] pre-commit
brian10048 Apr 14, 2021
71ca564
Update CONTRIBUTORS
yvaucher Oct 18, 2019
800fb0b
[UPD] Move from travis to github actions
NL66278 Jan 10, 2023
7968811
[IMP] base_geoengine: black, isort, prettier
yvaucher Jan 31, 2023
cd54e63
[MIG] base_geoengine: Migration to 14.0
yvaucher Jan 31, 2023
08a734a
[FIX] base_geoengine: use shape() instead of asShape()
NL66278 Jan 10, 2023
35627c3
Yannick Vaucher renaming to Yannick Payot
yvaucher Feb 1, 2023
b92fd9e
[14.0][FIX]base_geoengine: non-admin users can see maps
aleuffre Jan 10, 2023
55f265d
[UPD] Update base_geoengine.pot
Feb 1, 2023
d6d3067
[UPD] README.rst
OCA-git-bot Feb 1, 2023
86e77d2
[IMP] base_geoengine: black, isort, prettier
kouffsamuel Feb 13, 2023
66ece45
[MIG] base_geoengine : migration from odoo 14 to odoo 16
kouffsamuel Feb 14, 2023
0869691
[ADD] base_geoengine: display field geo_edit_map with multipolygon an…
kouffsamuel Feb 15, 2023
9c98575
[FIX] base_geoengine: fix zip creation and refractor geo_edit_map
kouffsamuel Feb 15, 2023
afc5e9a
[FIX] base_geoengine: fix retails machine and start geoengine view fix
kouffsamuel Feb 16, 2023
2773437
[FIX] base_geoengine: fix geoengine view renderer
kouffsamuel Feb 18, 2023
e987e7b
[ADD] base_geoengine: add left-side menu for layers
kouffsamuel Feb 19, 2023
3190702
[FIX] base_geoengine: display raster layers for zip and retail machin…
kouffsamuel Feb 21, 2023
79563d9
[FIX] base_geoengine: display vector layers for zip and retail machines
kouffsamuel Feb 23, 2023
ce35988
[FIX] remove ref to submodule
kouffsamuel Feb 24, 2023
97169a3
[FIX] base_geoengine: display info box
kouffsamuel Feb 28, 2023
0ad7f59
[FIX] base_geoengine: button to edit record on info box + fix display…
kouffsamuel Feb 28, 2023
2759170
[FIX] base_geogines: fix bugs and use opacity of the layer management
kouffsamuel Mar 1, 2023
23c0823
[FIX] base_geoengine: code cleaning
kouffsamuel Mar 2, 2023
5c07121
[FIX] base_geoengine: fix pre-commit
kouffsamuel Mar 2, 2023
6048194
[IMP][FIX] base_geoengine: start model tests and fix retail machines …
kouffsamuel Mar 6, 2023
b7611cb
[IMP] base_geoengine: end model tests
kouffsamuel Mar 6, 2023
91df6a0
changing the default SRID (correction of the previous one)
lmarion-source May 27, 2020
22e0d56
[IMP] base_geoengine: add tests from_lat_lonand to_lat_lon
kouffsamuel Mar 6, 2023
d0c8a85
[IMP] base_geoengine: refactor geo_search
kouffsamuel Mar 7, 2023
fa744d2
[FIX] base_geoengine: current_field __leaf_to_sql
kouffsamuel Mar 7, 2023
60bd340
[FIX] base_geoengine: Display Labels on Polygon
kouffsamuel Mar 8, 2023
0677fd4
[FIX] base_geoengine: fix srid
kouffsamuel Mar 8, 2023
a0e6bb9
[FIX] base_geoengine: fix column definition at install
kouffsamuel Mar 9, 2023
e080bd3
[IMP] base_geoengine: geo_search is deprecated, normal search method …
kouffsamuel Mar 9, 2023
e72fd6a
[FIX] base_geoengine: fix __leaf_to_sql by adding our own where_calc …
kouffsamuel Mar 10, 2023
9dc334e
[FIX] base_geoengine: fix fields SRID
kouffsamuel Mar 13, 2023
e363b02
[IMP] base_geoengine : Access rules
kouffsamuel Mar 14, 2023
9f0fd98
[IMP] base_geoengine: Allows to define a model on the vector layer to…
kouffsamuel Mar 15, 2023
53a0680
[FIX] base_geoengine: fix priority and add domain on geo_field_id
kouffsamuel Mar 15, 2023
b2d4cbc
[IMP] base_geoengine: this code seems not to be used
kouffsamuel Mar 15, 2023
2969439
[ADD] base_geoengine : add copyright
kouffsamuel Mar 16, 2023
c7ddd5d
[FIX] base_geoengine: Use different types of source for rasters layers
kouffsamuel Mar 16, 2023
e912a57
[ADD] base_geoengine: add the possibility to specify a color and an o…
kouffsamuel Mar 16, 2023
e8d5416
[IMP] base_geoengine: readme, refactor and documentation
kouffsamuel Mar 20, 2023
97c0570
[FIX] base_geoengine: fix readme
kouffsamuel Mar 20, 2023
7b95ac7
[IMP] base_geoengine: moving unnecessary files from the models folder
kouffsamuel Mar 20, 2023
9572e93
[ADD] base_geoengine: order the vector layer in relation to the sequence
kouffsamuel Mar 20, 2023
a1b03b5
[FIX] base_geoengine: fix tests
kouffsamuel Mar 20, 2023
fdbaadd
[IMP] base_geoengine: setting up and extending the domain widget on t…
kouffsamuel Mar 28, 2023
8d7a922
[ADD] base_geoengine: add editing functionnality of domain of a vecto…
kouffsamuel Mar 30, 2023
ae5d4e2
[ADD] base_geoengine: Added layer editing functionality and add a sor…
kouffsamuel Apr 4, 2023
76c0740
[ADD] base_geoengine: add access rights in the layer panel
kouffsamuel Apr 5, 2023
6a2ad8c
[IMP] base_geoengine: readme, documentation
kouffsamuel Apr 6, 2023
e2bffe8
[ADD] base_geoengine: adding a button to fold or unfold layers panel
kouffsamuel Apr 11, 2023
69aa266
[ADD] base_geoengine: adding records panel
kouffsamuel Apr 11, 2023
ac3a8ed
[IMP] base_geoengine: add some interactions to records panel
kouffsamuel Apr 11, 2023
97ceaf9
[ADD] base_geoengine: module translation
kouffsamuel Apr 11, 2023
eb387ca
[FIX] base_geoengine: fix import
kouffsamuel Apr 11, 2023
f36c7ac
[IMP] base_geoengine: documentation, readme
kouffsamuel Apr 12, 2023
8105be3
[IMP] base_geoengine: edit shape instead of redraw (geo_edit_map)
kouffsamuel Apr 25, 2023
672a3cf
[ADD] base_geoengine : modification of records from geoengine view
kouffsamuel Apr 28, 2023
1c7f1f5
[ADD] base_geoengine: add zoom in localstorage
kouffsamuel Apr 28, 2023
eadba43
[ADD] base_geoengine: create records on geoengine view
kouffsamuel May 2, 2023
9b0912c
[FIX] base_geoengine: fix load related model
kouffsamuel May 8, 2023
134f61c
[FIX] base_geoengine: fix domain widget
kouffsamuel May 8, 2023
331bd2f
[ADD] base_geoengine: add geo_lesser operator
kouffsamuel May 8, 2023
6447a27
[FIX] base_geoengine: add some validation constraints
kouffsamuel May 12, 2023
94f1f7d
[FIX] base_geoengine: fix in domain widget
kouffsamuel May 12, 2023
0cfd3d7
[FIX] base_geoengine: fixing the Geoengine Data tab display
kouffsamuel May 12, 2023
3296b0e
[IMP] base_geoengine: changing the colour of a control when clicked
kouffsamuel May 15, 2023
38edce4
[FIX] base_geoengine : fix domain widget with active_ids and add legend
kouffsamuel May 18, 2023
6c4ab08
[IMP] base_geoengine: update import
kouffsamuel May 23, 2023
21306f9
[IMP] base_geoengine: remove super.setup() from
kouffsamuel May 23, 2023
7a7635e
[IMP] base_geoengine: replace loadJs and loadCss by loadBundle
kouffsamuel May 23, 2023
382f7b9
[IMP] base_geoengine: use force when is necessary to add in
kouffsamuel May 23, 2023
b8def80
[IMP] base_geoengine: Encapsulate calls in Promise.all
kouffsamuel May 23, 2023
4b2be5c
[FIX] base_geoengine: Fix documentation format
lmignon Jun 5, 2023
1fb862a
[UPD] Update base_geoengine.pot
Jun 6, 2023
0c99010
[UPD] README.rst
OCA-git-bot Jun 6, 2023
41401e6
Update translation files
weblate Jun 6, 2023
ded85e8
Added translation using Weblate (Spanish)
Ivorra78 Aug 8, 2023
503cd21
Translated using Weblate (Spanish)
Ivorra78 Aug 8, 2023
72be203
[UPD] README.rst
OCA-git-bot Sep 3, 2023
f8d12f0
Update translation files
weblate Oct 9, 2023
fe729dd
Added translation using Weblate (Swedish)
jakobkrabbe Nov 2, 2023
e3bf905
Translated using Weblate (Swedish)
jakobkrabbe Nov 2, 2023
2850637
Added translation using Weblate (Italian)
mymage Jan 25, 2024
9f34f65
Translated using Weblate (Italian)
mymage Jan 26, 2024
7c29a35
[IMP] allow to set a service url for OSM raster layer type
Feb 29, 2024
4a5ec93
Translated using Weblate (Swedish)
jakobkrabbe Jun 19, 2024
032f47b
[BOT] post-merge updates
OCA-git-bot Aug 28, 2024
54c67a5
[16.0][Feature] add website_geoengine_store_locator
Feb 6, 2024
3ad8ac0
[UPD] Update base_geoengine.pot
Oct 30, 2024
644d326
Update translation files
weblate Oct 30, 2024
205dcdc
[IMP] base_geoengine: black, isort, prettier
peluko00 Jan 10, 2025
5562689
[MIG] base_geoengine: Migration to 15.0
peluko00 Jan 10, 2025
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
304 changes: 304 additions & 0 deletions base_geoengine/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,304 @@
===========================
Geospatial support for Odoo
===========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3719b77b03d00782aed409d5608576fd9491fa14ff87c384fcf453f2cfe222dd
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fgeospatial-lightgray.png?logo=github
:target: https://github.com/OCA/geospatial/tree/15.0/base_geoengine
:alt: OCA/geospatial
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/geospatial-15-0/geospatial-15-0-base_geoengine
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/geospatial&target_branch=15.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

GeoEngine is an Odoo module that adds spatial/GIS capabilites to Odoo. It will allow you to :

* Visualize and query your business information on map
* Perform GeoBI and spatial query
* Configure your spatial layers and spatial datasources
* Extend Odoo models with spatial columns

GeoEngine relies on `OpenLayers <http://openlayers.org>`_ and `PostgGIS <http://postgis.refractions.net/>`_ technologies.

Postgis is used to store spatial information in databases. OpenLayer is used to represent spatial data in other words to show maps
and the different spatial layers. The GeoEngine module acts as a data provider and as an OpenLayers configurator.
It also provides a complete extension to Odoo ORM.

**Table of contents**

.. contents::
:local:

Installation
============


To install this module, you need to have `PostGIS <http://postgis.net/>`_ installed.

On Ubuntu::

.. code-block:: bash

sudo apt-get install postgis

The module also requires two additional python libs:

* `Shapely <http://pypi.python.org/pypi/Shapely>`_

* `geojson <http://pypi.python.org/pypi/geojson>`_

When you will install the module this two additional libs will be installed.

For a complete documentation please refer to the `public documenation <http://oca.github.io/geospatial/index.html>`_

Usage
=====

Geoengine Demo
==============

1. As a user/admin, when I am in the Geoengine Demo module and I go to the ZIP menu.
When I click on an item in the list view, I get to the form view showing me the different
information about the ZIP. We can see its ZIP, city, priority, total sales and his spatial
representation.
2. As a user, I can't modify the information in the form view.
3. As an admin, I can modify the information in the form view. I can click on the bin button to clear
the map and I can draw a new shape.
4. As a user, when I go the "Retail machines" tab and there are no items to display, it does not
show me anything.
5. As an admin, when I go the "Retail machines" tab and there are no items to display, the list view of
the retail machines suggests to me to add a new line.
6. As a user/admin, if there are items to be displayed in the "Retail machines" tab then I can click on an
item and the retail machines form view will be displayed. We can see its spatial representation by going
to "The point" tab and its attributes in "Attributes" tab.
7. As a user/admin, when I go to the geoengine zip view by clicking on the map button at the top right of the
screen. The geoengine view appears with the first 80 results displayed on the map. The vector layers
selected are those defined as "active on startup" by the admin. The selected raster layer is the first
one that is not an overlay layer.
8. As a user/admin, when I hover over an area on the map, the area changes its style.
9. As a user/admin, when I click on an area, a popup appears an I can see the different information about the
area. If I click on the cross, the popup will disappear. If I click somewhere else on the map, the
popup will also disappear. If I click on the about button, then the form view will be displayed.
10. As a user/admin, when I use the paging system, then the results displayed on the map are different
(corresponding to the request).
11. As a user/admin, if we use the search bar, we can search results by his zip or his city.
12. As an admin, if I change the sequence of layers with the handle button then the change are persisted in database.
13. As a user, if I change the sequence of layers with the handle button then the change are not persisted in database.
There are just the changes in the display.
14. As an admin, if I change the domain of a layer with the filter button then the change are persisted in database.
15. As a user, if I change the domain of a layer with the filter button then the change are not persisted in database.
There are just the changes in the display.
16. As an admin, I have the possibility to edit the layer with its corresponding button.
17. As a user/admin, I can open/close LayerPanel with its button.
18. As a user/admin, I can open/close RecordsPanel with its button.
19. As a user/admin, when I click on a record in RecordsPanel, a move is made on the map to the selected record.
20. As a user/admin, when I click on a record in RecordsPanel, I can also click on the left magnifying glass to zoom on the record.
21. As a user/admin, when I click on a record in RecordsPanel, I can also click on the right magnifying glass to get the original zoom.
22. As a user/admin, I can use the search bar to search in the RecordsPanel.
23. As an admin,If the geoengine view is in edit mode, I can create new records by drawing them in the view.
24. As an admin, If the geoengine view is in edit mode, I can modify its spatial representation.

Geoengine Backend
=================

1. As an admin, if I go into the configuration of the raster layers and it has elements, I can click
on one and see its information.
2. As an admin, if I want to create a new raster layer, I can click on "NEW" and fill out the form. The
required fields for OpenStreetMap type are "Layer Name" and "Related View". If we want to have a
WMTS (Web Map Tile Service) raster type. The required fields in addition to the precedents are "Service URL",
"Matrix set","Format", "Projection" and "Resolutions". If we take WMS (Web Map Service) raster type, then the
required fields are "Layer Name", "Related View", "Service URL", "Params", "Server Type".
3. As an admin,if I go into the configuration of the vector layers and it has elements, I can click
on one and see its information.
4. As an admin, if I want to create a new vector layer, I can click on "NEW" and fill out the form. The
required fields are "Layer Name", "Related View", "Geo field" and "Representation mode".

Changelog
=========

16.0.1.0.0 (2023-03-20)
========================

* LayerSwitcher has been removed as it was not really practical. A LayerPanel is now active.
* The geo_search method is now deprecated and replaced by the standard odoo search method.
* The widget "geo_edit_map" attribute is no longer necessary as the field is automatically detected by
his type. We can also provide an option attribute that allows us to pass an opacity and a color as
parameters.

.. code-block:: xml

<form>
<notebook colspan="4">
<page string="Geometry">
<field name="the_geom" options="{'opacity': 0.8, 'color': '#0000FF' }" />
</page>
</notebook>
</form>

* The method geo_search is now deprecated. We now need to use the standard odoo search method.

.. code-block:: python

obj.search([("the_point","geo_intersect",{"dummy.zip.the_geom": [("id", "=", rec.id)]})])

* We can now pass to the geoengine view a template to display the information we want
to see when clicking on a feature.

.. code-block:: xml

<geoengine>
<field name="name" />
<field name="city" />
<field name="total_sales" />
<field name="the_geom" />
<templates>
<t t-name="info_box">
<field name="city" widget="badge" />
<ul>
<li>ZIP : <field name="name" />
</li>
<li>Total Sales: <field name="total_sales" />
</li>
</ul>
</t>
</templates>
</geoengine>

* We can now pass a model to use to a layer to display other information on the map.

.. code-block:: xml

<record id="geoengine_vector_layer_hs_retail_machines" model="geoengine.vector.layer">
<field name="model_id" ref="base_geoengine_demo.model_geoengine_demo_automatic_retailing_machine"/>
<field name="model_domain">[('state', '=', 'hs')]</field>
<field name="geo_field_id" ref="base_geoengine_demo.field_geoengine_demo_automatic_retailing_machine__the_point"/>
<field name="name">HS retail machines</field>
<field name="view_id" ref="ir_ui_view_resbetterzipgeoview0" />
<field name="geo_repr">basic</field>
<field name="attribute_field_id" ref="base_geoengine_demo.field_geoengine_demo_automatic_retailing_machine__name"/>
<field name="begin_color">#FF0000</field>
<field name="display_polygon_labels" eval="0" />
<field name="layer_opacity">0.8</field>
</record>


* There is some new features in the LayerPanel.

1. If you are logged in as an admin, you have the possibility to edit the layer by clicking on the edit button. This will open a dialog box.
Changes will appear in real time on the view.
2. If you are logged in as an admin, you can also change the domain of the layer. If you are logged in as a user, changes will not be
persisted in the database. Changes will appear in real time on the view.
3. If you are logged in as an admin, you can also change the sequence of the layers by sliding them over each other. If you are logged in as a user, changes will not be
persisted in the database.

* Widget domain is now implemented for geo field This means that the geo-operators are also implemented and that there is the possibility to add a sub-domain.
If we want to add a domain that includes all the records that are displayed in the geoengine view (active_ids). We can use the two new operators :
"in active_ids" and "not in active_ids". These will automatically replace the marker with ids. Note that the widget will indicate that the domain is invalid
because of the marker.
* Creation of the RecordsPanel. This panel allows you to retrieve all active records. You can click on record to get the movement to the selected record.
Two magnifying glass are also available. You can click on the left one to zoom on the record. You can click on the right one to get the original zoom.
* A search bar is also available. It allows you to perform a search into the RecordsPanel.
* A button to open/close the panels is also available.
* The module has been translated in French.
* Now you can now make the geoengine view editable. Simply add editable attribute in the geoengine view.

.. code-block:: xml

<geoengine editable="1">
<field name="name" />
<field name="city" />
<field name="total_sales" />
<field name="the_geom" />
<field name="display_name" />
<templates>
<t t-name="info_box">
<field name="city" widget="badge" />
<ul>
<li>ZIP : <field name="name" />
</li>
<li>Total Sales: <field name="total_sales" />
</li>
</ul>
</t>
</templates>
</geoengine>

Thanks to that, you can create new records by drawing them directly in the geoengine view. You can also edit record in the same view.

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/geospatial/issues/new?body=module:%20base_geoengine%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Camptocamp
* ACSONE SA/NV

Contributors
~~~~~~~~~~~~

* Nicolas Bessi <nicolas.bessi@camptocamp.com>
* Frederic Junod <frederic.junod@camptocamp.com>
* Yannick Payot <yannick.payot@camptocamp.com>
* Sandy Carter <sandy.carter@savoirfairelinux.com>
* Laurent Mignon <laurent.mignon@acsone.eu>
* Jonathan Nemry <jonathan.nemry@acsone.eu>
* David Lasley <dave@dlasley.net>
* Daniel Reis <dgreis@sapo.pt>
* Matthieu Dietrich <matthieu.dietrich@camptocamp.com>
* Alan Ramos <alan.ramos@jarsa.com.mx>
* Damien Crier <damien.crier@camptocamp.com>
* Cyril Gaudin <cyril.gaudin@camptocamp.com>
* Pierre Verkest <pverkest@anybox.fr>
* Benjamin Willig <benjamin.willig@acsone.eu>
* Devendra Kavthekar <dkatodoo@gmail.com>
* Emanuel Cino <ecino@compassion.ch>
* Thomas Nowicki <thomas.nowicki@camptocamp.com>
* Alexandre Saunier <alexandre.saunier@camptocamp.com>
* Sandip Mangukiya <smangukiya@opensourceintegrators.com>
* Samuel Kouff <s.kouff@student.helmo.be>
* Antoni Marroig <amarroig@apsl.net>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

This module is part of the `OCA/geospatial <https://github.com/OCA/geospatial/tree/15.0/base_geoengine>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
6 changes: 6 additions & 0 deletions base_geoengine/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from . import models
from . import expressions
from . import fields
from . import geo_convertion_helper
from . import geo_operators
from .geo_db import init_postgis
34 changes: 34 additions & 0 deletions base_geoengine/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2011-2015 Nicolas Bessi (Camptocamp SA)
# Copyright 2016 Yannick Payot (Camptocamp SA)
# Copyright 2023 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Geospatial support for Odoo",
"version": "15.0.1.0.0",
"category": "GeoBI",
"author": "Camptocamp,ACSONE SA/NV,Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/geospatial",
"depends": ["base", "web"],
"data": [
"security/data.xml",
"views/base_geoengine_view.xml",
"views/ir_model_view.xml",
"views/ir_view_view.xml",
"views/geo_raster_layer_view.xml",
"views/geo_vector_layer_view.xml",
"security/ir.model.access.csv",
],
"assets": {
"web.assets_backend": [
"base_geoengine/static/src/js/**/*",
"base_geoengine/static/src/css/style.css",
("include", "web._assets_helpers"),
"web/static/lib/bootstrap/scss/_variables.scss",
("include", "web._assets_bootstrap"),
]
},
"external_dependencies": {"python": ["shapely", "geojson", "simplejson"]},
"installable": True,
"pre_init_hook": "init_postgis",
}
Loading
Loading