Skip to Content
Menu
This question has been flagged
1 Reply
6497 Views

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!
Avatar
Discard
Author Best Answer

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;

        },

    });

});


Avatar
Discard
Related Posts Replies Views Activity
1
Mar 22
5466
0
Feb 19
2866
2
Jul 24
1334
3
May 24
1241
0
May 24
507