[IMP] web_widget_many2one_simple: isort, black, prettier.

pull/2104/head
fshah 2021-07-13 17:26:45 +05:30 committed by OCA-git-bot
parent f82fade4ae
commit 9e039a114f
1 changed files with 22 additions and 22 deletions

View File

@ -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});
});
}