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

[17.0][MIG] fieldservice_geoengine: Migration to 17.0 #1190

Merged
merged 64 commits into from
Sep 27, 2024

Conversation

peluko00
Copy link
Contributor

@peluko00 peluko00 commented May 22, 2024

murtuzasaleh and others added 30 commits May 22, 2024 08:12
minor UI improvements
Currently translated at 77.8% (7 of 9 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_geoengine
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_geoengine/es_CL/
Currently translated at 11.1% (1 of 9 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_geoengine
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_geoengine/de/
Currently translated at 33.3% (3 of 9 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_geoengine
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_geoengine/de/
Currently translated at 55.6% (5 of 9 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_geoengine
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_geoengine/pt_BR/
Currently translated at 100.0% (9 of 9 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_geoengine
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_geoengine/pt_BR/
Currently translated at 100.0% (9 of 9 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_geoengine
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_geoengine/pt_BR/
Currently translated at 100.0% (9 of 9 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_geoengine
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_geoengine/es_AR/
Currently translated at 100.0% (9 of 9 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_geoengine
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_geoengine/es_AR/
[IMP] fix travis CI dependency

[IMP] added requirements needed for geospatial

[IMP] added requirements needed for geospatial
@peluko00
Copy link
Contributor Author

peluko00 commented Jun 5, 2024

Hi @sersanchus, i have a problem when enter to map view for a problem with source.

image

The problem is in base_geoengine that we work together but i don't know why is throwing this error. Any idea to solve that?

Thanks in advance

@sersanchus
Copy link

Hi @peluko00,

The error is related to this piece of code not finding any vec layer:

var extent = this.vectorLayersResult .find((res) => res.values_.visible === true) .getSource() .getExtent();

As all openlayers vec layers are visible by default, maybe there aren't any 'geoengine.vector.layer' associated with the geoengine view of your demo. In that case 'getOriginalZoom' has to detect that and use for example an empty extent in taht case:

ol.extent.createEmpty()

@peluko00
Copy link
Contributor Author

peluko00 commented Jun 10, 2024

Hi @peluko00,

The error is related to this piece of code not finding any vec layer:

var extent = this.vectorLayersResult .find((res) => res.values_.visible === true) .getSource() .getExtent();

As all openlayers vec layers are visible by default, maybe there aren't any 'geoengine.vector.layer' associated with the geoengine view of your demo. In that case 'getOriginalZoom' has to detect that and use for example an empty extent in taht case:

ol.extent.createEmpty()

I found the error, is because any of the 'geoengine.vector.layer' hasn't a field called 'active_on_startup' seted to True.
Normally base_geonegine needs one at least.

Many thanks!

@peluko00 peluko00 force-pushed the 17.0-mig-fieldservice_geoengine branch from 23d6b2f to 7016282 Compare June 10, 2024 13:56
Copy link

@mpascuall mpascuall left a comment

Choose a reason for hiding this comment

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

Working good, checked in runboat

Copy link

@miquelalzanillas miquelalzanillas left a comment

Choose a reason for hiding this comment

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

Working as expected on runboat.

LGTM!

@max3903
Copy link
Member

max3903 commented Jun 17, 2024

/ocabot migration fieldservice_geoengine

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Jun 17, 2024
@dreispt
Copy link
Member

dreispt commented Sep 14, 2024

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 17.0-ocabot-merge-pr-1190-by-dreispt-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Sep 14, 2024
Signed-off-by dreispt
@OCA-git-bot
Copy link
Contributor

@dreispt your merge command was aborted due to failed check(s), which you can inspect on this commit of 17.0-ocabot-merge-pr-1190-by-dreispt-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@peluko00
Copy link
Contributor Author

peluko00 commented Sep 18, 2024

@dreispt Maybe it's for the dependency that not being merge?

@peluko00
Copy link
Contributor Author

@max3903 @dreispt It's ready to be merge

@max3903
Copy link
Member

max3903 commented Sep 27, 2024

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 17.0-ocabot-merge-pr-1190-by-max3903-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 332e823 into OCA:17.0 Sep 27, 2024
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 82227a0. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.