-
-
Notifications
You must be signed in to change notification settings - Fork 304
[19.0][MIG] base_geoengine: migrate to 19.0 #446
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
Open
leNeo
wants to merge
472
commits into
OCA:19.0
Choose a base branch
from
leNeo:19.0
base: 19.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
472 commits
Select commit
Hold shift + click to select a range
801564e
Don't zoom when setting or changing a geometry
yvaucher fba3d6b
Add an option to set a default zoom to avoid showing a map that you a…
yvaucher 0b773b5
No key argument in js, set an optional argument instead with default …
yvaucher 848a3b0
Add an action on map info box to open the selected object in form view
yvaucher 1abe0f9
Update Roadmap
yvaucher 66cbdf9
Bump version
yvaucher 3cb6e8d
Fix z-index of Openlayers map container to ensure it doesn't hide sea…
yvaucher 77227c8
Fix unitialized map on 2nd tab of popup forms
yvaucher f614cfb
Bump version
yvaucher a3cadcd
Fix geoengine tests with addition of default_zoom
yvaucher 6bb89d0
[FIX] from_latlon method srdi was incorrect
alan196 8141876
[MIG] Make modules uninstallable
pedrobaeza 5407259
[MIG] Rename manifest files
pedrobaeza 68e8d72
[IMP] OL3
lmignon e873676
Remove disabling stopdown as it is included in OL3
yvaucher b9ccc36
Add click on feature event
lmignon 0d1f3f9
Fix Mapinfo box + set cursor pointer
yvaucher 861a103
[FIX] map styling and fullscreen mode
lmignon fed3860
chromojs
lmignon bb596ea
FIX legend
lmignon fb0295d
bump OL version to 3.18.2
damdam-s 25d30d4
fitExtent is deprecated by fit
yvaucher f7bbdc0
Remove MapQuest
08ac615
Fix Represenation Mode colored label
e3b6068
Fix map size error when open record in a fullscreen map.
db6bff8
Add selection controlers
yvaucher c5d7bae
Change display of map box info if multiple features are selected
yvaucher 9c12e68
Fix css missing bracket
yvaucher 8fd9ebe
Add button to filter by selected geo features
yvaucher 7b93e90
Implement button to switch in box selection
yvaucher bff9531
Improve button to filter features
yvaucher e5170f6
Fix feature counter on view map
yvaucher fd7940a
Port creation of filter on selection
yvaucher 76f489f
Improve filter selection button to fix with open single element button
yvaucher 5f208a5
Fix extent error when no feature are present
yvaucher 1233dd5
Set fa icon for geo selection filter
yvaucher daef533
Add a selection dragbox when holding SHIFT
yvaucher 299ecf8
[IMP] multi layer selection of records on Geoengine map
yvaucher d968065
geoengine widget first part:
damdam-s a15ce7a
Remove ol alias
yvaucher cc05928
Define edit layer of geoengine widget
yvaucher d692fa4
Add modify interaction on geoengine widget (modify interaction needs …
yvaucher c932e21
Add comment on restrictedExtent
yvaucher 5528284
Remove former fix for scrolling as it is not needed with OL3
yvaucher 9d1aaba
remove comment
yvaucher b466933
Remove google raster layer deprecated option
yvaucher 640faa9
Remove former ol2 and unused libraries
yvaucher a59fc19
Fix onchange for modify control
yvaucher fd3e35d
Fix geostat color legend position
yvaucher 3c292af
Reimplement button to clear geometry from edition widget
yvaucher 66b6f09
Update license headers
yvaucher d22e3c1
[PORT] base_geoengine to 10.0 - remove old API
yvaucher 5ffdfdf
jslint
yvaucher ea71d1e
[FIX] #132: geo columns were created by odoo base models
e074294
[FIX] Column should be created if GeoField is computed and stored
benwillig f6c4a02
[FIX] Cache value for a geo field should be the the hex code. convert…
benwillig b2d11c9
[ADD] New method to convert 2 points to a LineString
benwillig d356cef
[FIX] Fixed tests. Added new tests for new methods
benwillig 9c73ca2
[FIX] Pylint
benwillig 7b339a3
[FIX] Handle convert_to_record case when there is no value or if it's…
benwillig a40af2a
[FIX] Do not hardcode string during line creation from points
benwillig c8980ab
[IMP] Allow to define layers which will be active on startup
benwillig 2b1cee2
[ADD] Allow to display a configurable popup on map layers.
benwillig 325718c
[IMP] Allow to change the size of the drawn circle
benwillig 282e7ee
[IMP] Allow to pass a specific srid to GeoLine.from_points method
benwillig 0477201
[Add] Allow to display labels on polygons for layers
dek-odoo 997d2af
[FIX] Replace openerp imports
ecino 204be11
Fix Lint & Travis CI issues
dek-odoo d67acc3
[10, Add] Allow to set opacity on layers (#165)
dek-odoo 78ca471
[FIX] typo in base_geoengine javascript. (#166)
ecino cd920dd
Play python 2to3
Tonow-c2c f4b5536
Remove coding: utf-8
Tonow-c2c 54e1b2e
Readme split in readme folder
Tonow-c2c f03d7cb
Fix signature change on _setup_fields
yvaucher 5e048d1
_select_column_data is replaced by tools.table_columns
yvaucher 2499251
Change signature of convert_to_column to to introduction of multi val…
yvaucher 350d4ea
Use new MVC approach
yvaucher 3af2c75
Fix geoengine view for Odoo 11
asaunier d4f930b
Fix geoengine widget for Odoo 11
asaunier 4524387
Reorganise geoengine files
asaunier ff0844c
Add base_geoengine README back
asaunier 6f43537
Add support of onchange requests to convert_to_record
asaunier a43d695
Update WMTS backgrounds creation
asaunier b7ef6dd
Fix JS lint errors
asaunier 9c88f72
Fix travis tests
asaunier 6d91722
Fix layer switcher
asaunier 2e95102
Improve handling of maps in tabs
asaunier c4f6047
Improve WMTS background layers creation
asaunier abbb490
Upgrade to OL 3.20.1
asaunier e99b316
Move base_geoengine tests to a dedicated module
asaunier 19a2ec7
[IMP] Add custom type support for colored render
324e8f0
Move base_geoengine readme in the right folder
yvaucher 9ae40b4
[UPD] README.rst
OCA-git-bot a9c4ea5
Add USAGE in base_geoengine
yvaucher 6416774
[UPD] README.rst
OCA-git-bot 11c167d
Mig base_geoengine to version 12.0
yvaucher 61cf1cc
Add geo fields to odoo.fields
yvaucher cc5f967
Use intheritance of 'base' for GeoModel
yvaucher 10373e6
Avoid creation of columns on abstract models
yvaucher 4f0e10d
pyeval was renamed pyUtils
yvaucher 2832509
Make MissingError translatable for auto install of postgis extension,…
yvaucher 5c37e5a
Simplify super calls with python 3 syntax
yvaucher 7b99823
Use EPSG:3857 instead of EPSG:900913
fredj b18db75
Remove server_resolutions field in WMTS options
fredj 8ac1d98
Update OL version to OL 4.6.5
yvaucher d7556ba
JS lint
yvaucher 44fdbd6
Fix dimension field label
yvaucher ff71702
Give description to geoengine view models
yvaucher 85845c5
Fix duplicate title in README.rst
yvaucher decaee7
Remove double title in README.rst - in source too this time
yvaucher bf4163f
[12.0][ADD] Support of Swisstopo layers
asaunier 36cf6e4
Fix selection of ttype field on ir.model.fields
yvaucher a75d544
Bump version
yvaucher 58b87a8
[13.0][MIG] base_geoengine
5b1c7ce
Fix state of field for geo field to 'base'
yvaucher 18cedf3
Remove view_type from views
4dd9645
run pre-commit
cd13f47
Fix Selection field display value in map info_box
yvaucher 49c1a81
[fix] displaying relation fields in map info box - fixes #224
alpham-andela dbbc216
FIX: Refresh geoengine widget after changing record through pager action
grindtildeath 49ba1f3
FIX: Call render instead of renderMap to ensure geometries layers are…
grindtildeath 8b8a841
remove executable permission from geoenigine_record.js
9f6365a
pre-commit with correct config
ad84173
Fix geometry field creation missing configurations
yvaucher 6c4f7db
pre-commit
a032cdf
[12.0][IMP] Use default zoom when creating a map with no geometry
asaunier 64b7c5a
base_geoengine 13.0.1.0.1
OCA-git-bot 5d79228
[IMP] base_geoengine: remove unnecessary hack
Creamaster f17a536
[UPD] Update base_geoengine.pot
oca-travis 7fb9ce4
Fix default_extent in views
TDu a122ca6
base_geoengine 13.0.1.0.2
OCA-git-bot d22effc
[LINT] pre-commit
brian10048 12ef3d8
Update CONTRIBUTORS
yvaucher 365545a
[UPD] Move from travis to github actions
NL66278 88820fe
[IMP] base_geoengine: black, isort, prettier
yvaucher 1d74830
[MIG] base_geoengine: Migration to 14.0
yvaucher 79d5dba
[FIX] base_geoengine: use shape() instead of asShape()
NL66278 a1ac9c9
Yannick Vaucher renaming to Yannick Payot
yvaucher 89663ae
[14.0][FIX]base_geoengine: non-admin users can see maps
HekkiMelody c466cac
[UPD] Update base_geoengine.pot
d67f98f
[UPD] README.rst
OCA-git-bot 691baa0
[IMP] base_geoengine: black, isort, prettier
kouffsamuel c6438ed
[MIG] base_geoengine : migration from odoo 14 to odoo 16
kouffsamuel 8d53031
[ADD] base_geoengine: display field geo_edit_map with multipolygon an…
kouffsamuel 30ccdf5
[FIX] base_geoengine: fix zip creation and refractor geo_edit_map
kouffsamuel 43841c7
[FIX] base_geoengine: fix retails machine and start geoengine view fix
kouffsamuel b4916c7
[FIX] base_geoengine: fix geoengine view renderer
kouffsamuel f0b8056
[ADD] base_geoengine: add left-side menu for layers
kouffsamuel 3305e23
[FIX] base_geoengine: display raster layers for zip and retail machin…
kouffsamuel 201def7
[FIX] base_geoengine: display vector layers for zip and retail machines
kouffsamuel d20863f
[FIX] remove ref to submodule
kouffsamuel eae567d
[FIX] base_geoengine: display info box
kouffsamuel 26dcbdb
[FIX] base_geoengine: button to edit record on info box + fix display…
kouffsamuel 8957ce6
[FIX] base_geogines: fix bugs and use opacity of the layer management
kouffsamuel 7b04733
[FIX] base_geoengine: code cleaning
kouffsamuel 29fa22c
[FIX] base_geoengine: fix pre-commit
kouffsamuel 9374629
[IMP][FIX] base_geoengine: start model tests and fix retail machines …
kouffsamuel 13eacf3
[IMP] base_geoengine: end model tests
kouffsamuel 29c9b5e
changing the default SRID (correction of the previous one)
lmarion-source e8f7475
[IMP] base_geoengine: add tests from_lat_lonand to_lat_lon
kouffsamuel 124ecf7
[IMP] base_geoengine: refactor geo_search
kouffsamuel 1a496fe
[FIX] base_geoengine: current_field __leaf_to_sql
kouffsamuel abd8262
[FIX] base_geoengine: Display Labels on Polygon
kouffsamuel 109c455
[FIX] base_geoengine: fix srid
kouffsamuel c9c3893
[FIX] base_geoengine: fix column definition at install
kouffsamuel d2505a8
[IMP] base_geoengine: geo_search is deprecated, normal search method …
kouffsamuel 8a49a7c
[FIX] base_geoengine: fix __leaf_to_sql by adding our own where_calc …
kouffsamuel 7aaf804
[FIX] base_geoengine: fix fields SRID
kouffsamuel f2d79ed
[IMP] base_geoengine : Access rules
kouffsamuel 4c827a6
[IMP] base_geoengine: Allows to define a model on the vector layer to…
kouffsamuel c7d5c5d
[FIX] base_geoengine: fix priority and add domain on geo_field_id
kouffsamuel 635db3a
[IMP] base_geoengine: this code seems not to be used
kouffsamuel 24ac623
[ADD] base_geoengine : add copyright
kouffsamuel 11344e2
[FIX] base_geoengine: Use different types of source for rasters layers
kouffsamuel bcaaf33
[ADD] base_geoengine: add the possibility to specify a color and an o…
kouffsamuel 1db7c6f
[IMP] base_geoengine: readme, refactor and documentation
kouffsamuel 99dce78
[FIX] base_geoengine: fix readme
kouffsamuel 77b7108
[IMP] base_geoengine: moving unnecessary files from the models folder
kouffsamuel dfe3571
[ADD] base_geoengine: order the vector layer in relation to the sequence
kouffsamuel b45af26
[FIX] base_geoengine: fix tests
kouffsamuel 138d293
[IMP] base_geoengine: setting up and extending the domain widget on t…
kouffsamuel cfde9fc
[ADD] base_geoengine: add editing functionnality of domain of a vecto…
kouffsamuel 980a813
[ADD] base_geoengine: Added layer editing functionality and add a sor…
kouffsamuel c11173e
[ADD] base_geoengine: add access rights in the layer panel
kouffsamuel 964d990
[IMP] base_geoengine: readme, documentation
kouffsamuel a8201b6
[ADD] base_geoengine: adding a button to fold or unfold layers panel
kouffsamuel 66485f3
[ADD] base_geoengine: adding records panel
kouffsamuel 3729d37
[IMP] base_geoengine: add some interactions to records panel
kouffsamuel 61db471
[ADD] base_geoengine: module translation
kouffsamuel 02d70b5
[FIX] base_geoengine: fix import
kouffsamuel 91add5c
[IMP] base_geoengine: documentation, readme
kouffsamuel 17623e8
[IMP] base_geoengine: edit shape instead of redraw (geo_edit_map)
kouffsamuel 163721d
[ADD] base_geoengine : modification of records from geoengine view
kouffsamuel 98e7e6f
[ADD] base_geoengine: add zoom in localstorage
kouffsamuel 31a71dd
[ADD] base_geoengine: create records on geoengine view
kouffsamuel eae1164
[FIX] base_geoengine: fix load related model
kouffsamuel c3a7e8d
[FIX] base_geoengine: fix domain widget
kouffsamuel ad516b7
[ADD] base_geoengine: add geo_lesser operator
kouffsamuel d075335
[FIX] base_geoengine: add some validation constraints
kouffsamuel 697a529
[FIX] base_geoengine: fix in domain widget
kouffsamuel 65bd513
[FIX] base_geoengine: fixing the Geoengine Data tab display
kouffsamuel 12bda14
[IMP] base_geoengine: changing the colour of a control when clicked
kouffsamuel b4c9555
[FIX] base_geoengine : fix domain widget with active_ids and add legend
kouffsamuel 6581c1e
[IMP] base_geoengine: update import
kouffsamuel 83bb960
[IMP] base_geoengine: remove super.setup() from
kouffsamuel 820bd0c
[IMP] base_geoengine: replace loadJs and loadCss by loadBundle
kouffsamuel b0af0e7
[IMP] base_geoengine: use force when is necessary to add in
kouffsamuel 343147c
[IMP] base_geoengine: Encapsulate calls in Promise.all
kouffsamuel 0b5884b
[FIX] base_geoengine: Fix documentation format
lmignon c364f5b
[UPD] Update base_geoengine.pot
af4cf63
[UPD] README.rst
OCA-git-bot 56a8b5f
Update translation files
weblate 136cd40
Added translation using Weblate (Spanish)
Ivorra78 311aecb
Translated using Weblate (Spanish)
Ivorra78 8b0b9f5
[UPD] README.rst
OCA-git-bot d6c1333
Update translation files
weblate 962ba21
Added translation using Weblate (Swedish)
jakobkrabbe 1be04de
Translated using Weblate (Swedish)
jakobkrabbe 16341e3
Added translation using Weblate (Italian)
mymage 2f09b1b
Translated using Weblate (Italian)
mymage 3752f4b
[IMP] base_geoengine: pre-commit auto fixes
2107600
[MIG] base_geoengine: Migration to 17.0
ed28e43
[UPD] Update base_geoengine.pot
c2784c6
[BOT] post-merge updates
OCA-git-bot 696aff3
Update translation files
weblate cbf4a2e
Translated using Weblate (Italian)
mymage db570ee
[UPDATE] Add rtl ignore for persian and arabic language
Sanazzzmi 6f0a54d
Added translation using Weblate (Chinese (Simplified) (zh_CN))
xtanuiha 896a6d2
[BOT] post-merge updates
OCA-git-bot 23c2cdf
Translated using Weblate (Chinese (Simplified) (zh_CN))
xtanuiha bc47793
[IMP] base_geoengine: pre-commit auto fixes
cormaza f79f445
[18.0][MIG] base_geoengine: Migration to 18.0
cormaza bdc21ad
[18.0][UPD] upgrade version of libs used in render
cormaza 23b4064
[UPD] Update base_geoengine.pot
f8af567
[BOT] post-merge updates
OCA-git-bot da46aae
[FIX #412] Load openlayers js separately (because it is not minifieble)
katyukha 35685a7
Apply lint fixes
katyukha 3f6559d
[BOT] post-merge updates
OCA-git-bot 0e2eded
[IMP] base_geoengine: Updated field label
anusriNPS ece79c9
[IMP][base_geoengine]: Update domain for attribute_field_id
anusriNPS e3c64a4
[IMP] base_geoengine: Include edit button in Popup
anusriNPS 21e683e
[UPD] Update base_geoengine.pot
8fc4a66
[BOT] post-merge updates
OCA-git-bot 0851f30
Update translation files
weblate 168bedf
Translated using Weblate (Italian)
mymage a85a672
feat(geoengine.vector.layer): add `intermediate_colors` field for gra…
zamberjo 24534aa
[MIG] base_geoengine: Migration to 19.0
leNeo 247b3ce
feat(geoengine_swisstopo): add multi-projection support for geoengine…
leNeo e02bcdb
[IMP] base_geoengine: add generated requirements.txt
leNeo e9b4e04
Delete geoengine_swisstopo directory
leNeo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,373 @@ | ||
| .. image:: https://odoo-community.org/readme-banner-image | ||
| :target: https://odoo-community.org/get-involved?utm_source=readme | ||
| :alt: Odoo Community Association | ||
|
|
||
| =========================== | ||
| Geospatial support for Odoo | ||
| =========================== | ||
|
|
||
| .. | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! This file is generated by oca-gen-addon-readme !! | ||
| !! changes will be overwritten. !! | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! source digest: sha256:a22713167bb39e1995e9bc618b29382cd03bba76a910d58cf62993288b0a385b | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
|
||
| .. |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/license-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/19.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-19-0/geospatial-19-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=19.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 | ||
| `PostGIS <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:: 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>`__ | ||
|
|
||
| These two additional libs will be installed automatically with the | ||
| module. | ||
|
|
||
| For a complete documentation please refer to the `public | ||
| documentation <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". | ||
|
|
||
| Known issues / Roadmap | ||
| ====================== | ||
|
|
||
|
|
||
|
|
||
| Changelog | ||
| ========= | ||
|
|
||
| 19.0.1.0.1 | ||
| ---------- | ||
|
|
||
| - Migration to Odoo 19.0. | ||
| - Migrated JavaScript frontend to OWL/ESM architecture. | ||
| - Updated OpenLayers to version 10.5.0. | ||
| - Updated Chroma.js to version 3.1.2. | ||
| - Refactored domain handling for Odoo 19 ORM compatibility. | ||
|
|
||
| 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:: 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:: 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:: 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:: 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:: 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:%2019.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> | ||
| - `APSL-Nagarro <https://www.apsl.tech>`__: | ||
|
|
||
| - Antoni Marroig <amarroig@apsl.net> | ||
| - Miquel Alzanillas <malzanillas@apsl.net> | ||
|
|
||
| - Red Butay | ||
| - Sergio Sancho <sersanchus@gmail.com> | ||
|
|
||
| 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/19.0/base_geoengine>`_ project on GitHub. | ||
|
|
||
| You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # Copyright 2011-2012 Nicolas Bessi (Camptocamp SA) | ||
| # Copyright 2023 ACSONE SA/NV | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
| from . import models | ||
| from . import expressions | ||
| from . import fields | ||
| from . import geo_convertion_helper | ||
| from . import geo_operators | ||
| from .geo_db import init_postgis | ||
| from . import domains |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is defined in the template and should not be modified manually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. base_geoengine requires PostGIS for its test database.
The module already creates the extension in its pre-init hook, but that only works if the PostgreSQL service image has PostGIS installed.
Since .github/workflows/test.yml is template-managed, what is the preferred OCA way to handle this for the repository? Should this be done through the template/repo configuration instead of a manual workflow change?