confirm_many2one_create: fix simple JS bug

This commit is contained in:
Marc Durepos 2024-08-02 14:55:11 -04:00
parent 8e5185a80f
commit 78029a6944
2 changed files with 4 additions and 2 deletions

View file

@ -28,7 +28,9 @@
"depends": ["web"],
"data": [],
"assets": {
"web.assets_backend": ["confirm_many2one_create/src/js/many2one_field.esm.js"]
"web.assets_backend": [
"confirm_many2one_create/static/src/js/many2one_field.esm.js",
],
},
"installable": True,
"auto_install": False,

View file

@ -5,7 +5,7 @@ import {patch} from "@web/core/utils/patch";
patch(Many2OneField.prototype, {
get Many2XAutocompleteProps() {
const props = super.Many2XAutocompleteProps();
const props = super.Many2XAutocompleteProps;
props.quickCreate = this.openConfirmationDialog.bind(this);
return props;
},