Module
fieldservice_geoengine
Describe the bug
When you enable the "Use GeoEngine with OpenStreetMap" option in the settings for the fieldservice addon you encounter an error stating that the "base_geoengine" dependency is unavailable ( because this is a dependency listed in the "fieldservice_geoengine" addon. So when you search you can find a version of base_geoengine for Odoo version 16 here which can easily be ported to version 17. After porting to version 17 you will encounter another error related to fieldservice_geoengine.
`odoo.tools.convert.ParseError: while parsing /opt/odoo/custom_addons/fieldservice_geoengine/views/fsm_order.xml:34
Error while validating view near:
Name:
Forbidden owl directive used in arch (t-name).
View error context:
{'file': '/opt/odoo/custom_addons/fieldservice_geoengine/views/fsm_order.xml',
'line': 16,
'name': 'ir.ui.view.fsm.order.map',
'view': ir.ui.view(4657,),
'view.model': 'fsm.order',
'view.parent': ir.ui.view(),
'xmlid': 'ir_ui_view_fsm_order_map'}
`
This error is related to the following code in the fsm_order.xml file
`
<record id="ir_ui_view_fsm_order_map" model="ir.ui.view">
<field name="name">ir.ui.view.fsm.order.map</field>
<field name="arch" type="xml">
<geoengine editable="1">
<field name="name" />
<field name="phone" />
<field name="street" />
<field name="street2" />
<field name="city" />
<field name="state_name" />
<field name="zip" />
<field name="country_name" />
<field name="stage_name" />
<field name="shape" />
<field name="shape" />
<field name="custom_color" />
<templates>
<t t-name="info_box">
<b>
Name: <field name="name" />
</b>
<ul>
<li>Phone: <field name="phone" /> </li>
<li>Mobile: <field name="mobile" /> </li>
<li>Street: <field name="street" /> </li>
<li>Street 2: <field name="street2" /> </li>
<li>City: <field name="city" /> </li>
<li>State: <field name="state_name" /> </li>
<li>ZIP: <field name="zip" /> </li>
<li>Country: <field name="country_name" /> </li>
</ul>
</t>
</templates>
</geoengine>
</field>
<field name="priority" eval="16" />
<field name="model">fsm.order</field>
</record>`
To Reproduce
Affected versions:
Steps to reproduce the behavior:
- Install fieldservice version 17.0.1.3.0
- Click "Use GeoEngine with OpenStreetMap" in the fieldservice settings
- Port and install base_geoengine
- Repeat step 2
Expected behavior
I expect the modules to install without issue and enable the OpenStreetMap and GeoEngine functionality
Module
fieldservice_geoengine
Describe the bug
When you enable the "Use GeoEngine with OpenStreetMap" option in the settings for the fieldservice addon you encounter an error stating that the "base_geoengine" dependency is unavailable ( because this is a dependency listed in the "fieldservice_geoengine" addon. So when you search you can find a version of base_geoengine for Odoo version 16 here which can easily be ported to version 17. After porting to version 17 you will encounter another error related to fieldservice_geoengine.
`odoo.tools.convert.ParseError: while parsing /opt/odoo/custom_addons/fieldservice_geoengine/views/fsm_order.xml:34
Error while validating view near:
Name:
Forbidden owl directive used in arch (t-name).
View error context:
{'file': '/opt/odoo/custom_addons/fieldservice_geoengine/views/fsm_order.xml',
'line': 16,
'name': 'ir.ui.view.fsm.order.map',
'view': ir.ui.view(4657,),
'view.model': 'fsm.order',
'view.parent': ir.ui.view(),
'xmlid': 'ir_ui_view_fsm_order_map'}
`
This error is related to the following code in the fsm_order.xml file
`
To Reproduce
Affected versions:
Steps to reproduce the behavior:
Expected behavior
I expect the modules to install without issue and enable the OpenStreetMap and GeoEngine functionality