跳至内容
菜单
此问题已终结
1 回复
6937 查看

Greetings earthlings!

I'm trying to add a field (and show it), in the chat area of any document. Unfortunately, although the program is not showing any error, it simply will not do what I want (the new stuff is not loaded)...


odoo.define('mymodule.model.AbstractMessage', function (require) {

"use strict";

    var AbstractMessage = require('mail.model.AbstractMessage');

    var myAbstractMessage = AbstractMessage.extend({

        init: function (parent, data) {

            this._read_by = data.read_by;

            this._super.apply(this, arguments);

        },

        getReadBy: function () {

            return this._read_by;

        },

    });

    return myAbstractMessage;

});

Is there anyone who can figure out what's wrong?

Thanks!
形象
丢弃
编写者 最佳答案

odoo.define('mymodule.model.AbstractMessage', function (require) {

    "use strict";

    var AbstractMessage = require('mail.model.AbstractMessage');

    AbstractMessage.include({

        init: function (parent, data) {

            this._read_by = data.read_by;

            this._super.apply(this, arguments);

        },

        getReadBy: function () {

            return this._read_by;

        },

    });

});


形象
丢弃
相关帖文 回复 查看 活动
1
3月 22
6424
0
2月 19
3496
2
7月 24
2215
3
5月 24
2952
0
5月 24
1727