<commit_before>openerp.account.quickadd = function (instance) {
    var _t = instance.web._t,
        _lt = instance.web._lt;
    var QWeb = instance.web.qweb;
    
    instance.web.account = instance.web.account || {};

    instance.web.views.add('tree_account_move_line_quickadd', 'instance.web.account.QuickAddListView');
    instance.web.account.QuickAddListView = instance.web.ListView.extend({
        init: function() {
            this._super.apply(this, arguments);
            this.journals = [];
            this.periods = [];
            this.accounts =[];
            this.current_account = null;
            this.current_journal = null;
            this.current_period = null;
            this.default_account = null;
            this.default_period = null;
            this.default_journal = null;
            this.current_journal_type = null;
            this.current_journal_currency = null;
            this.current_journal_analytic = null;
            
        },
        start:function(){
            var tmp = this._super.apply(this, arguments);
            var self = this;
            this.$el.parent().prepend(QWeb.render("AccountMoveLineQuickAdd", {widget: this}));
            
            this.$el.parent().find('.oe_account_select_journal').change(function() {
                    self.current_journal = this.value === '' ? null : parseInt(this.value);
                    self.do_search(self.last_domain, self.last_context, self.last_group_by);
                });
            this.$el.parent().find('.oe_account_select_period').change(function() {
                    self.current_period = this.value === '' ? null : parseInt(this.value);
                    self.do_search(self.last_domain, self.last_context, self.last_group_by);
                });
            
            this.$el.parent().find('.oe_account_select_account').change(function() {
            	self.current_account = this.value === '' ? null : parseInt(this.value);
                self.do_search(self.last_domain, self.last_context, self.last_group_by);
            });
            
            this.$el.parent().find('.print_extract_button').click(function() {
            	//mod.call("print_extract", []).then(function(result) {
                //    console.log( result) ;
                //});
            	
            	var extraCss = "/account_move_line_extend/static/src/css/popup_extract.css";
            	var popClose = True;
            	//var mode = "popup";
            	var popTitle = "extract";
            	var options = {  'extraCss' : extraCss, 
            					 'popClose': popClose, 
            					 //'mode': mode,
            					 'popTitle': popTitle,
            					 'popHt':1000,
            					 'popWt':800,
            					 'popX':200,
            					 'popY':200,
            				   };

                $('.oe_list').printArea(options);
            	//window.print();<commit_msg>draft ticket<commit_after>openerp.account.quickadd = function (instance) {
    var _t = instance.web._t,
        _lt = instance.web._lt;
    var QWeb = instance.web.qweb;
    
    instance.web.account = instance.web.account || {};

    instance.web.views.add('tree_account_move_line_quickadd', 'instance.web.account.QuickAddListView');
    instance.web.account.QuickAddListView = instance.web.ListView.extend({
        init: function() {
            this._super.apply(this, arguments);
            this.journals = [];
            this.periods = [];
            this.accounts =[];
            this.current_account = null;
            this.current_journal = null;
            this.current_period = null;
            this.default_account = null;
            this.default_period = null;
            this.default_journal = null;
            this.current_journal_type = null;
            this.current_journal_currency = null;
            this.current_journal_analytic = null;
            
        },
        start:function(){
            var tmp = this._super.apply(this, arguments);
            var self = this;
            this.$el.parent().prepend(QWeb.render("AccountMoveLineQuickAdd", {widget: this}));
            
            this.$el.parent().find('.oe_account_select_journal').change(function() {
                    self.current_journal = this.value === '' ? null : parseInt(this.value);
                    self.do_search(self.last_domain, self.last_context, self.last_group_by);
                });
            this.$el.parent().find('.oe_account_select_period').change(function() {
                    self.current_period = this.value === '' ? null : parseInt(this.value);
                    self.do_search(self.last_domain, self.last_context, self.last_group_by);
                });
            
            this.$el.parent().find('.oe_account_select_account').change(function() {
            	self.current_account = this.value === '' ? null : parseInt(this.value);
                self.do_search(self.last_domain, self.last_context, self.last_group_by);
            });
            
            this.$el.parent().find('.print_extract_button').click(function() {
            	//mod.call("print_extract", []).then(function(result) {
                //    console.log( result) ;
                //});
            	
            	var extraCss = "/account_move_line_extend/static/src/css/popup_extract.css";
            	var popClose = true;
            	var mode = "iframe";//iframe popup
            	var popTitle = "extract";
            	var options = {  'extraCss' : extraCss, 
            					 'popClose': popClose, 
            					 'mode': mode,
            					 'popTitle': popTitle,
            					 'popHt':1000,
            					 'popWt':800,
            					 'popX':200,
            					 'popY':200,
            				   };

                $('.oe_list').printArea(options);
            	//window.print();
{'fraction_non_alphanumeric': 0.13073237508555785, 'fraction_numerical': 0.004449007529089665, 'mean_word_length': 1.6873563218390804, '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': '7664579', 'n_tokens_mistral': 1706, 'n_tokens_neox': 1590, 'n_words': 221}