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

    var KanbanController = require("web.KanbanController");
    var ListController = require("web.ListController");

    var includeDict = {
        renderButtons: function () {
            this._super.apply(this, arguments);
            if (this.modelName === "account.bank.statement") {
                this.$buttons.find('button.o_button_import').hide();
            }
        }
    };

    KanbanController.include(includeDict);
    ListController.include(includeDict);
});<commit_msg>[FIX] account: fix cash bank statement import button<commit_after>odoo.define('account.bank_statement', function(require) {
    "use strict";

    var KanbanController = require("web.KanbanController");
    var ListController = require("web.ListController");

    var includeDict = {
        renderButtons: function () {
            this._super.apply(this, arguments);
            if (this.modelName === "account.bank.statement") {
                var data = this.model.get(this.handle);
                if (data.context.journal_type !== 'cash') {
                    this.$buttons.find('button.o_button_import').hide();
                }
            }
        }
    };

    KanbanController.include(includeDict);
    ListController.include(includeDict);
});
{'fraction_non_alphanumeric': 0.13368185212845407, 'fraction_numerical': 0.0, 'mean_word_length': 2.6118598382749325, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3217203', 'n_tokens_mistral': 363, 'n_tokens_neox': 349, 'n_words': 57}