[REM] Removed "save as" button in FieldBinaryImage

bzr revid: fme@openerp.com-20110523081133-s80a6hl27urepsxt
This commit is contained in:
Fabien Meghazi
2011-05-23 10:11:33 +02:00
parent e7bb8477dc
commit 862982f7bb
2 changed files with 0 additions and 10 deletions
-7
View File
@@ -1212,7 +1212,6 @@ openerp.base.form.FieldBinary = openerp.base.form.Field.extend({
start: function() {
this._super.apply(this, arguments);
this.$element.find('input.oe-binary-file').change(this.on_file_change);
this.$element.find('button.oe-binary-file-save').click(this.on_save_as);
this.$element.find('.oe-binary-file-clear').click(this.on_clear);
},
set_value_from_ui: function() {
@@ -1252,12 +1251,6 @@ openerp.base.form.FieldBinary = openerp.base.form.Field.extend({
},
on_file_uploaded_and_valid: function(size, name, content_type, file_base64) {
},
on_save_as: function() {
var url = '/base/formview/saveas?session_id=' + this.session.session_id + '&model=' +
this.view.dataset.model +'&id=' + (this.view.datarecord.id || '') + '&field=' + this.name +
'&fieldname=' + (this.node.attrs.filename || '') + '&t=' + (new Date().getTime())
window.open(url);
},
on_clear: function() {
if (this.value !== false) {
this.value = false;
-3
View File
@@ -426,9 +426,6 @@
<input type="file" class="oe-binary-file" name="ufile"/>
</form>
</button>
<button class="button oe-binary-file-save" type="button" title="Save As">
<img src="/base/static/src/img/icons/gtk-save.png"/>
</button>
<button class="button oe-binary-file-clear" type="button" title="Clear">
<img src="/base/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
</button>