Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
6995 Vizualizări

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!
Imagine profil
Abandonează
Autor Cel mai bun răspuns

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;

        },

    });

});


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mar. 22
6541
0
feb. 19
3566
2
iul. 24
2346
3
mai 24
3099
0
mai 24
1882