[IMP] attachment: binary does not need save as button in widget
This commit is contained in:
@@ -1082,7 +1082,6 @@ var FieldBinary = common.AbstractField.extend(common.ReinitializeFieldMixin, {
|
||||
this.$('.o_select_file_button').click(function() {
|
||||
self.$inputFile.click();
|
||||
});
|
||||
this.$('.o_save_file_button').click(this.on_save_as);
|
||||
this.$('.o_clear_file_button').click(this.on_clear);
|
||||
},
|
||||
on_file_change: function(e) {
|
||||
|
||||
@@ -860,7 +860,6 @@
|
||||
|
||||
<button type="button" class="btn btn-sm btn-primary o_select_file_button" title="Select">Upload your file</button>
|
||||
<button type="button" class="btn btn-sm btn-default fa fa-pencil o_select_file_button" title="Select"/>
|
||||
<button type="button" class="btn btn-sm btn-default fa fa-download o_save_file_button" title="Save As..."/>
|
||||
<button type="button" class="btn btn-sm btn-default fa fa-trash-o o_clear_file_button" title="Clear"/>
|
||||
|
||||
<span class="o_form_binary_progress">Uploading...</span>
|
||||
|
||||
Reference in New Issue
Block a user