@ -20,7 +20,7 @@
{
"name": "MuK Web Utils",
"summary": """Utility Features""",
"version": "12.0.2.8.20",
"version": "12.0.2.8.21",
"category": "Extra Tools",
"license": "AGPL-3",
"author": "MuK IT",
@ -30,5 +30,5 @@ class BackendController(http.Controller):
def max_upload_size(self, **kw):
params = request.env['ir.config_parameter'].sudo()
return {
'max_upload_size': int(params.get_param("muk_web_utils.max_upload_size", default=25))
'max_upload_size': int(params.get_param('muk_web_utils.binary_max_size', default=25))
}
@ -36,7 +36,7 @@ fields.FieldBinaryFile.include({
}).done(function(result) {
this.max_upload_size = result.max_upload_size * 1024 * 1024;
}.bind(this));
return this._super.apply(this, arguments);
return $.when(this._super.apply(this, arguments), def);
},
_renderReadonly: function () {
this._super.apply(this, arguments);
@ -50,7 +50,7 @@ fields.FieldBinaryImage.include({
_render: function () {