ソースを参照

[FIX][11.0] website_media_size travis warn

pull/642/head
tbaden 6ヶ月前
コミット
5838a36e81
2個のファイルの変更4行の追加4行の削除
  1. +1
    -1
      website_media_size/README.rst
  2. +3
    -3
      website_media_size/static/src/js/website_media_size.js

+ 1
- 1
website_media_size/README.rst ファイルの表示

@@ -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 ファイルの表示

@@ -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);
}
},
});
});

読み込み中…
キャンセル
保存