Ext.define('CoreShop.taxation.TaxRuleGroup', {
    extend: 'CoreShop.resource.ComboBox',
    alias: 'widget.coreshop.taxRuleGroup',

    name: 'taxRule',
    storeId: 'coreshop_taxrulegroups',
    fieldLabel: t('coreshop_tax_rule_group'),
    store: {
        type: 'coreshop_tax_rule_groups'
    },
    listeners: {
        beforerender: function () {
            if (!this.getStore().isLoaded() && !this.getStore().isLoading())
                this.getStore().load();
        }
    }
});
