[IMP]Improved code in boot.js.
bzr revid: kch@tinyerp.com-20110825054930-z9p9zj276e6haj1l
This commit is contained in:
parent
c240ffc45e
commit
b8cc16cc5d
|
@ -1331,7 +1331,7 @@ class Import(View):
|
||||||
records = []
|
records = []
|
||||||
fields = []
|
fields = []
|
||||||
word=''
|
word=''
|
||||||
limit = 3
|
limit = 4
|
||||||
try:
|
try:
|
||||||
for i, row in enumerate(data):
|
for i, row in enumerate(data):
|
||||||
records.append(row)
|
records.append(row)
|
||||||
|
|
|
@ -54,15 +54,12 @@ openerp.base = function(instance) {
|
||||||
openerp.base.formats(instance);
|
openerp.base.formats(instance);
|
||||||
openerp.base.chrome(instance);
|
openerp.base.chrome(instance);
|
||||||
openerp.base.data(instance);
|
openerp.base.data(instance);
|
||||||
files = ["views","search","list","form","list_editable","web_mobile","view_tree","data_export"];
|
files = ["views","search","list","form","list_editable","web_mobile","view_tree","data_export","data_import"];
|
||||||
for(i=0; i<files.length; i++) {
|
for(i=0; i<files.length; i++) {
|
||||||
if(openerp.base[files[i]]) {
|
if(openerp.base[files[i]]) {
|
||||||
openerp.base[files[i]](instance);
|
openerp.base[files[i]](instance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (openerp.base.data_import){
|
|
||||||
openerp.base.data_import(instance);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// vim:et fdc=0 fdl=0 foldnestmax=3 fdm=syntax:
|
// vim:et fdc=0 fdl=0 foldnestmax=3 fdm=syntax:
|
||||||
|
|
|
@ -582,6 +582,7 @@ openerp.base.form.Widget = openerp.base.Widget.extend({
|
||||||
this.$element = $('#' + this.element_id);
|
this.$element = $('#' + this.element_id);
|
||||||
},
|
},
|
||||||
stop: function() {
|
stop: function() {
|
||||||
|
this.$element = $('#' + this.element_id);
|
||||||
this.$element.remove();
|
this.$element.remove();
|
||||||
},
|
},
|
||||||
process_modifiers: function() {
|
process_modifiers: function() {
|
||||||
|
|
Loading…
Reference in New Issue