/** @odoo-module */ import { registry } from "@web/core/registry"; import { usePopover } from "@web/core/popover/popover_hook"; import { Component } from "@odoo/owl"; import { standardFieldProps } from "@web/views/fields/standard_field_props"; /** * Extend this to add functionality to Popover (custom methods etc.) * need to extend PopoverWidgetField as well and set its Popover Component to new extension */ export class PopoverComponent extends Component { static template = "stock.popoverContent"; static props = ["record", "*"]; } /** * Widget Popover for JSON field (char), renders a popover above an icon button on click * { * 'msg': '' required if not 'popoverTemplate' is given, * 'icon': '' default='fa-info-circle', * 'color': '' default='text-primary', * 'position': default='top', * 'popoverTemplate': '