mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_widget_many2one_simple: black, isort, prettier
This commit is contained in:
committed by
OCA-git-bot
parent
d373f4b0b8
commit
64997e5bda
@@ -114,9 +114,8 @@ odoo.define("web_widget_many2one_simple.FieldMany2OneSimple", function (require)
|
||||
if (this.can_create) {
|
||||
const create_context = _.extend({}, this.attrs.context);
|
||||
if (this.search.field !== "id") {
|
||||
create_context[
|
||||
"default_" + this.search.field
|
||||
] = this.$input.val();
|
||||
create_context["default_" + this.search.field] =
|
||||
this.$input.val();
|
||||
}
|
||||
this._createPopup("form", create_context);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user