<commit_before>
odoo.define('web_debranding.field_upgrade', function (require) {
"use strict";

    var core = require('web.core');
    var UpgradeBoolean = core.form_widget_registry.get('upgrade_boolean');
    var UpgradeRadio = core.form_widget_registry.get('upgrade_radio');

    var include = {
        'start': function(){
            var $el = this.$el;
            var i = 1;
            var MAX = 10;
            while (true){
                if (i > MAX)
                    break;
                i++;
                if ($el.prop("tagName") == 'TR'){
                    $el.hide();
                    break;
                }
                $el = $el.parent();
                if (!$el)
                    break;
            }
        },
        'on_click_input':function(){
        }
    };

    //skip this for a while as we don't have example to test it
    //UpgradeRadio.include(include);

    UpgradeBoolean.include(include);
});
<commit_msg>[FIX] don't update FieldUpgradeBoolean on enterprise<commit_after>
odoo.define('web_debranding.field_upgrade', function (require) {
"use strict";

    var core = require('web.core');
    var UpgradeBoolean = core.form_widget_registry.get('upgrade_boolean');
    var UpgradeRadio = core.form_widget_registry.get('upgrade_radio');

    var include = {
        'start': function(){
            var $el = this.$el;
            var i = 1;
            var MAX = 10;
            while (true){
                if (i > MAX)
                    break;
                i++;
                if ($el.prop("tagName") == 'TR'){
                    $el.hide();
                    break;
                }
                $el = $el.parent();
                if (!$el)
                    break;
            }
        },
        'on_click_input':function(){
        }
    };

    //skip this for a while as we don't have example to test it
    //UpgradeRadio.include(include);
    if (UpgradeBoolean.prototype.template != 'FieldUpgradeBoolean'){
        // we are on enterprise. No need to update
        return;
    }

    UpgradeBoolean.include(include);
});

{'fraction_non_alphanumeric': 0.1267204556241101, 'fraction_numerical': 0.0028476506881822496, 'mean_word_length': 1.48, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2751', 'n_tokens_mistral': 613, 'n_tokens_neox': 572, 'n_words': 139}