confirm_many2one_create: fix simple JS bug
This commit is contained in:
parent
8e5185a80f
commit
78029a6944
2 changed files with 4 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
},
|
||||
Loading…
Reference in a new issue