[MERGE] binary fields
bzr revid: fp@openerp.com-20121010202248-xjg4bl3dolrjuder
This commit is contained in:
@@ -4824,9 +4824,9 @@ instance.web.form.FieldBinaryFile = instance.web.form.FieldBinary.extend({
|
||||
this._super();
|
||||
if (this.get("effective_readonly")) {
|
||||
var self = this;
|
||||
this.$el.find('a').click(function() {
|
||||
this.$el.find('a').click(function(ev) {
|
||||
if (self.get('value')) {
|
||||
self.on_save_as();
|
||||
self.on_save_as(ev);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user