forked from Techsystech/web
[IMP] web_widget_many2one_simple: black, isort, prettier
parent
d373f4b0b8
commit
64997e5bda
|
@ -0,0 +1 @@
|
|||
../../../../web_widget_many2one_simple
|
|
@ -0,0 +1,6 @@
|
|||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue