[IMP] web_widget_dropdown_dynamic: black, isort, prettier

This commit is contained in:
Alexey Pelykh
2020-04-12 08:55:00 +02:00
committed by Bhavesh Heliconia
parent c0910bf5c4
commit dce8707813
5 changed files with 165 additions and 150 deletions

View File

@@ -1,11 +1,11 @@
/*
/*
* Copyright 2019 Brainbean Apps (https://brainbeanapps.com)
* License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
*/
odoo.define('web_widget_dropdown_dynamic.basic_model', function (require) {
odoo.define("web_widget_dropdown_dynamic.basic_model", function(require) {
"use strict";
var BasicModel = require('web.BasicModel');
var BasicModel = require("web.BasicModel");
BasicModel.include({
/**
@@ -20,7 +20,7 @@ odoo.define('web_widget_dropdown_dynamic.basic_model', function (require) {
* (for the given parameters), no RPC is done and the promise
* is resolved with the undefined value.
*/
_fetchDynamicDropdownValues: function (record, fieldName, fieldInfo) {
_fetchDynamicDropdownValues: function(record, fieldName, fieldInfo) {
var model = fieldInfo.options.model || record.model;
var method = fieldInfo.values || fieldInfo.options.values;
if (!method) {
@@ -29,7 +29,7 @@ odoo.define('web_widget_dropdown_dynamic.basic_model', function (require) {
var context = record.getContext({fieldName: fieldName});
// avoid rpc if not necessary
// Avoid rpc if not necessary
var hasChanged = this._saveSpecialDataCache(record, fieldName, {
context: context,
});