Odoo Aide

0

0
5 Answers
1
Avatar

Shawn Varghese

--Shawn Varghese--
857
| 5 3 9
Dubai, Émirats Arabes Unis
--Shawn Varghese--


Shawn Varghese
05/03/2016 05:16

Your _super() call is inside the asynchronous part of the method.

You need to assign it to a different variable and then call that. Could you try this:

local.ScKanbanGroup = instance.web_kanban.KanbanGroup.include({
 init: function (parent, records, group, dataset) {
    var self = this;
    var _super=this._super.bind(this);
    var res_user = new openerp.web.Model('res.users');
    res_user.call('get_picking_type_ids', null)
    .then(function (response) {
     // generate new records array base on response
     _super(parent, newRecords, group, dataset);
     });         
},


4 Comments
ePillars Systems LLC, Shawn Varghese
05/03/2016 05:18

The Javascript documentation on the Odoo website might provide more insight: https://www.odoo.com/documentation/9.0/howtos/web.html

Thanh Loyal
05/03/2016 07:36

Thank you, but that doesn't work. Now I get this._super(...) is undefined.

mustafa
19/09/2016 10:27

I tried that, it works.

Sahil
02/01/2019 03:10

This is working in V12 too

0
kirubanidhi
02/01/2018 07:29

what is the use of this._super() and this._super.apply(). can you give me the definition.

In which case, we can use this._super() and this._super.apply().

what is the difference between include() and extend() odoo javascript.

Poser une question
Writer
Keep Informed
1 Abonné(e)s
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now