[IMP] web_widget_many2one_simple: black, isort, prettier

This commit is contained in:
Thanakrit Pintana
2021-12-01 10:39:49 +07:00
committed by OCA-git-bot
parent d373f4b0b8
commit 64997e5bda
3 changed files with 9 additions and 3 deletions

View File

@@ -0,0 +1 @@
../../../../web_widget_many2one_simple

View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

View File

@@ -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 {