[IMP] web_action_conditionable: black, isort, prettier

pull/2435/head
stananatanaela 2021-06-08 10:25:22 +03:00 committed by Jasper Jumelet
parent 2d83f98107
commit 1dc09132f6
1 changed files with 3 additions and 3 deletions

View File

@ -1,20 +1,20 @@
/* global py */
/* Copyright 2019 Alexandre Díaz
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */
odoo.define("web.web_action_conditionable", function(require) {
odoo.define("web.web_action_conditionable", function (require) {
"use strict";
var FieldOne2Many = require("web.relational_fields").FieldOne2Many;
FieldOne2Many.include({
init: function() {
init: function () {
var self = this;
try {
return this._super.apply(this, arguments);
} catch (error) {
var arch = this.view && this.view.arch;
if (arch) {
["create", "delete"].forEach(function(item) {
["create", "delete"].forEach(function (item) {
if (!_.has(arch.attrs, item)) {
return;
}