mirror of https://github.com/OCA/web.git
[IMP] web_widget_many2one_simple: isort, black, prettier.
parent
f82fade4ae
commit
9e039a114f
|
@ -109,7 +109,7 @@ odoo.define("web_widget_many2one_simple.FieldMany2OneSimple", function(require)
|
|||
domain: _.union(domain, this._getDomain()),
|
||||
limit: 1,
|
||||
kwargs: {context: context},
|
||||
}).then(results => {
|
||||
}).then((results) => {
|
||||
if (_.isEmpty(results)) {
|
||||
if (this.can_create) {
|
||||
const create_context = _.extend({}, this.attrs.context);
|
||||
|
@ -201,7 +201,7 @@ odoo.define("web_widget_many2one_simple.FieldMany2OneSimple", function(require)
|
|||
disable_multiple_selection: true,
|
||||
no_create: !this.can_create,
|
||||
kanban_view_ref: this.attrs.kanban_view_ref,
|
||||
on_selected: records => this.reinitialize(records[0]),
|
||||
on_selected: (records) => this.reinitialize(records[0]),
|
||||
on_closed: () => this.activate(),
|
||||
};
|
||||
},
|
||||
|
@ -258,7 +258,7 @@ odoo.define("web_widget_many2one_simple.FieldMany2OneSimple", function(require)
|
|||
method: "get_formview_id",
|
||||
args: [[this.value.res_id]],
|
||||
context: context,
|
||||
}).then(view_id => {
|
||||
}).then((view_id) => {
|
||||
new dialogs.FormViewDialog(this, {
|
||||
res_model: this.field.relation,
|
||||
res_id: this.value.res_id,
|
||||
|
@ -299,7 +299,7 @@ odoo.define("web_widget_many2one_simple.FieldMany2OneSimple", function(require)
|
|||
method: "get_formview_action",
|
||||
args: [[this.value.res_id]],
|
||||
context: this.record.getContext(this.recordParams),
|
||||
}).then(action => {
|
||||
}).then((action) => {
|
||||
this.trigger_up("do_action", {action: action});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue