diff --git a/addons/stock/static/src/widgets/popover_widget.js b/addons/stock/static/src/widgets/popover_widget.js index 3ab687f6623..6d9c1ee88e0 100644 --- a/addons/stock/static/src/widgets/popover_widget.js +++ b/addons/stock/static/src/widgets/popover_widget.js @@ -29,7 +29,7 @@ export class PopoverWidgetField extends Component { this.popover = usePopover(); this.closePopover = null; let fieldValue = this.props.record.data[this.props.name]; - this.jsonValue = JSON.parse(fieldValue); + this.jsonValue = JSON.parse(fieldValue || "{}"); this.color = this.jsonValue.color || 'text-primary'; this.icon = this.jsonValue.icon || 'fa-info-circle'; }