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

18.0 mig base geoengine #386

Open
wants to merge 451 commits into
base: 18.0
Choose a base branch
from

Conversation

weinni2000
Copy link

Migration to 18.0

I tried to make the migration but I have troubles with the GeoengineRecord. I'm not very firm with owl so maybe some of my questions are not that precise.
But somehow it doesn't pick up the template for the GeoengineRecord
If I add it within the js it works.
I still get this error:
Uncaught (in promise) Error: Missing template: "web.Field" (for component "Field")
I'm a little bit lost because I don't know how to find the templates referenced by eg. t-call ... __template__25.
Would be great if someone could help me with that.

yvaucher and others added 30 commits November 1, 2024 07:33
…isplay values of selection field instead of technical value in info map box in geoengine view
The feature to set a symbol with symbol_url or symbol_binary on vector
layers was broken. This replace those fields by a new object vector
symbol on which you can specify which symbol to use depending on a field
value.
geo_contains calls St_Contains SQL search.

Plus fix search to set SRID to avoid mixin srid issue.
And extract Swisstopo to move it in a new module
Otherwise partial value is interpreted as context and it will fails on
Odoo loading
…lways need to zoom out to get useful informations
Ivorra78 and others added 14 commits November 1, 2024 07:33
Currently translated at 100.0% (163 of 163 strings)

Translation: geospatial-16.0/geospatial-16.0-base_geoengine
Translate-URL: https://translation.odoo-community.org/projects/geospatial-16-0/geospatial-16-0-base_geoengine/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: geospatial-16.0/geospatial-16.0-base_geoengine
Translate-URL: https://translation.odoo-community.org/projects/geospatial-16-0/geospatial-16-0-base_geoengine/
Currently translated at 77.9% (127 of 163 strings)

Translation: geospatial-16.0/geospatial-16.0-base_geoengine
Translate-URL: https://translation.odoo-community.org/projects/geospatial-16-0/geospatial-16-0-base_geoengine/sv/
Currently translated at 100.0% (163 of 163 strings)

Translation: geospatial-16.0/geospatial-16.0-base_geoengine
Translate-URL: https://translation.odoo-community.org/projects/geospatial-16-0/geospatial-16-0-base_geoengine/it/
>
>
Co-authored-by: Antoni Marroig Campomar <amarroig@apsl.net>
Co-authored-by: Red Butay <@reichie020212>
Co-authored-by: Miquel Alzanillas <malzanillas@apsl.net>
Co-authored-by: Sergio Sancho <sersanchus@gmail.com>
"
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: geospatial-17.0/geospatial-17.0-base_geoengine
Translate-URL: https://translation.odoo-community.org/projects/geospatial-17-0/geospatial-17-0-base_geoengine/
Currently translated at 100.0% (168 of 168 strings)

Translation: geospatial-17.0/geospatial-17.0-base_geoengine
Translate-URL: https://translation.odoo-community.org/projects/geospatial-17-0/geospatial-17-0-base_geoengine/it/
@weinni2000 weinni2000 force-pushed the 18.0-mig-base_geoengine branch from b5dc15c to e90815b Compare November 5, 2024 08:57
@yvaucher
Copy link
Member

Thanks for the attempt of migration.

Can you provide a stack trace of the error?

web.Field template should be present as it's comming from the core addon web:
https://github.com/odoo/odoo/blob/18.0/addons/web/static/src/views/fields/field.xml

I would assume that __template__25 is an automatically generated template. Could it be what you have for instance in
e90815b#diff-edc81af2df248b5194f57bb65b9fb3fb5b5488961d022dd98515218af97f0157R32-R43 ?

Otherwise I notice the CI fails as you are missing requirements like shapely, you will want to ensure you have the same deps as in:
https://github.com/OCA/geospatial/blob/17.0/requirements.txt

(IIRC pre-commit should do it for you)

@yvaucher
Copy link
Member

/ocabot migration base_geoengine

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Nov 12, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Nov 12, 2024
1 task
@weinni2000 weinni2000 force-pushed the 18.0-mig-base_geoengine branch from e90815b to 93dff69 Compare November 13, 2024 10:12
@weinni2000
Copy link
Author

@yvaucher:
I made a new attempt:
How does it work to add the apt dependencies in the CI Pipline?
In my doodba environment I added the following apt:txt:
postgis
gdal-bin
libgdal-dev
g++

@ap-wtioit
Copy link

@yvaucher: I made a new attempt: How does it work to add the apt dependencies in the CI Pipline? In my doodba environment I added the following apt:txt: postgis gdal-bin libgdal-dev g++

those are dependencies for the postgres container used in the test not for the OCA module your are migrating. It seems you need to change the postgres services used by the github pipeline as it was done in the 17.0 migration: 5142637#diff-faff1af3d8ff408964a57b2e475f69a6b7c7b71c9978cccc8f471798caac2c88L45

@weinni2000
Copy link
Author

weinni2000 commented Nov 13, 2024

I still have an issue. If I open a Popup:

Bildschirmfoto 2024-11-13 um 11 51 35

The templates can't be loaded:
If I change the named templates
template: "module.name"
to an inline xml
template: xmlxxxxxx

it works. This happens in the geoengine_renderer.js and downstream (like in web.Field).

@weinni2000 weinni2000 force-pushed the 18.0-mig-base_geoengine branch 4 times, most recently from fa710ed to 72b900b Compare November 13, 2024 14:27
@weinni2000
Copy link
Author

@yvaucher:
The tests are working now.
To properly extend odoo I had to override the parse method in odoo.osv.expressions. If my approach makes sense I would create an PR at odoo to give us an entrypoint so I don't have to override to whole method (And to make them aware of other uses for this parsers). Could somebody have a look at this first because this for sure will take some time.

@weinni2000 weinni2000 force-pushed the 18.0-mig-base_geoengine branch from 72b900b to 490d05a Compare November 22, 2024 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.