Skip to content

Commit

Permalink
Merge pull request #4 from sersanchus/fix_geoengine_field_id
Browse files Browse the repository at this point in the history
Uses props id instead of date timespan for better uniqueness of widget id
  • Loading branch information
miquelalzanillas authored May 21, 2024
2 parents 1d6a286 + 61e04f7 commit b32a569
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {Component, onMounted, onRendered, onWillStart, useEffect} from "@odoo/ow
export class FieldGeoEngineEditMap extends Component {
setup() {
// Allows you to have a unique id if you put the same field in the view several times
this.id = `map_${Date.now()}`;
this.id = `map_${this.props.id}`;
this.orm = useService("orm");

onWillStart(() =>
Expand Down

0 comments on commit b32a569

Please sign in to comment.