Browse Source

[FIX][11.0] website_media_size travis warn

pull/481/merge
tbaden 4 months ago
parent
commit
5838a36e81

+ 1
- 1
website_media_size/README.rst View File

@@ -54,4 +54,4 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.
To contribute to this module, please visit https://odoo-community.org.

+ 3
- 3
website_media_size/static/src/js/website_media_size.js View File

@@ -1,7 +1,7 @@
/* Copyright 2018 Onestein
* License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */

odoo.define('website_media_size', function(require) {
odoo.define('website_media_size', function (require) {
"use strict";

var web_editor_widget = require('web_editor.widget');
@@ -11,12 +11,12 @@ odoo.define('website_media_size', function(require) {
xmlDependencies: ImageDialog.prototype.xmlDependencies.concat(
['/website_media_size/static/src/xml/website_media_size.xml']
),
_rpc: function(params, options) {
_rpc: function (params, options) {
if (params.model === 'ir.attachment' &&
params.method === 'search_read') {
params.kwargs.fields.push('file_size');
}
return this._super(params, options);
}
},
});
});

Loading…
Cancel
Save