diff --git a/addons/hr_timesheet/static/src/app_store_widget/app_store_widget.js b/addons/hr_timesheet/static/src/app_store_widget/app_store_widget.js index b5d3cad3eb0..eb49624c313 100644 --- a/addons/hr_timesheet/static/src/app_store_widget/app_store_widget.js +++ b/addons/hr_timesheet/static/src/app_store_widget/app_store_widget.js @@ -45,6 +45,15 @@ class AppStoreWidget extends Component { } } AppStoreWidget.template = "hr_timesheet.AppStoreWidget"; +AppStoreWidget.props = { + ...standardWidgetProps, + type: { type: String }, +}; +AppStoreWidget.extractProps = ({ attrs }) => { + return { + type: attrs.type, + }; +}; class AppStoreQRDialog extends Component { setup() { @@ -58,13 +67,5 @@ class AppStoreQRDialog extends Component { } AppStoreQRDialog.components = { Dialog }; AppStoreQRDialog.template = "hr_timesheet.AppStoreQRDialog"; -AppStoreQRDialog.props = { - ...standardWidgetProps, - type: { type: String }, -}; -AppStoreQRDialog.extractProps = ({ attrs }) => { - return { - type: attrs.type, - }; -}; + registry.category("view_widgets").add("hr_timesheet.app_store_widget", AppStoreWidget);