field-service icon indicating copy to clipboard operation
field-service copied to clipboard

[16.0][FIX] fieldservice_geoengine: Restore geoengine views

Open anusriNPS opened this issue 9 months ago • 5 comments

Using templates for restoring geoengine views of "fsm.location" and "fsm.order" models.

Porting of PR #1325

anusriNPS avatar Mar 10 '25 12:03 anusriNPS

Hi @max3903, @wolfhall, some modules you are maintaining are being modified, check this out!

OCA-git-bot avatar Mar 10 '25 12:03 OCA-git-bot

Errors seen:

While clicking on orders and location names displayed to the right of geoengine map view, below error is seen:

image

anusriNPS avatar Mar 10 '25 12:03 anusriNPS

Errors seen:

While clicking on orders and location names displayed to the right of geoengine map view, below error is seen:

image

This error is seen only when Latitude and Longitude information does not exist when user tries to change the "location information" such as city, state, country. Once latitude and longitude values are used to calculate shape value for geoengine, this error is not seen.

Adding constraint check based on "fsm.location" geoengine view for fields such as state_id, country_id to indicate UserError have impact on other modules which inherit "fsm.location". So, user has to make sure to update latitude and longitude details while updating address of "Location"

anusriNPS avatar Mar 20 '25 10:03 anusriNPS

Errors seen: While clicking on orders and location names displayed to the right of geoengine map view, below error is seen: image

This error is seen only when Latitude and Longitude information does not exist when user tries to change the "location information" such as city, state, country. Once latitude and longitude values are used to calculate shape value for geoengine, this error is not seen.

Adding constraint check based on "fsm.location" geoengine view for fields such as state_id, country_id to indicate UserError have impact on other modules which inherit "fsm.location". So, user has to make sure to update latitude and longitude details while updating address of "Location"

Obviously it shouldn't error out if the fields are not present, so I think a fix is warranted, but it's outside the scope of this PR.

aleuffre avatar Mar 21 '25 09:03 aleuffre

Errors seen: While clicking on orders and location names displayed to the right of geoengine map view, below error is seen: image

This error is seen only when Latitude and Longitude information does not exist when user tries to change the "location information" such as city, state, country. Once latitude and longitude values are used to calculate shape value for geoengine, this error is not seen. Adding constraint check based on "fsm.location" geoengine view for fields such as state_id, country_id to indicate UserError have impact on other modules which inherit "fsm.location". So, user has to make sure to update latitude and longitude details while updating address of "Location"

Obviously it shouldn't error out if the fields are not present, so I think a fix is warranted, but it's outside the scope of this PR.

Yes, a warning can be shown to user when location related information changed. Will make it as part of seperate PR

anusriNPS avatar Mar 21 '25 12:03 anusriNPS

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar Jul 27 '25 12:07 github-actions[bot]

@OCA/field-service-maintainers We've been using this fix in production for months now. Will FW once merged. Thanks!

aleuffre avatar Jul 28 '25 08:07 aleuffre

/ocabot merge minor

brian10048 avatar Jul 28 '25 13:07 brian10048

Hey, thanks for contributing! Proceeding to merge this for you. Prepared branch 16.0-ocabot-merge-pr-1342-by-brian10048-bump-minor, awaiting test results.

OCA-git-bot avatar Jul 28 '25 13:07 OCA-git-bot

It looks like something changed on 16.0 in the meantime. Let me try again (no action is required from you). Prepared branch 16.0-ocabot-merge-pr-1342-by-brian10048-bump-minor, awaiting test results.

OCA-git-bot avatar Jul 28 '25 13:07 OCA-git-bot

Thank you @brian10048 !

aleuffre avatar Jul 28 '25 13:07 aleuffre

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

OCA-git-bot avatar Jul 28 '25 13:07 OCA-git-bot