Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

131
Views
odoo 14 : Got $node undefined in render_buttons

I'm working on adding some extra stuffs like in this module on odoo 14.0 pivot view.

I created the template and then inherit the PivotController, the problem is I always get undefined in $node variable when the renderButtons method is called and I could not add the templates (using appendTo) that I have created.

Here is sample of my code :

var PivotController = require('web.PivotController');

PivotController.include({
    renderButtons: function ($node) {
        var self = this;
        var state = self.model.get(self.handle, { raw: true });
        var context = state.context || false;
        this._super.apply(this, arguments);
        var l10n = _t.database.parameters;
        if ((context && context.add_company) || (context && context.add_partner)) {
            self.$formule_calcul = $(QWeb.render('formule_calcul', {}))
            self.$formule_calcul.appendTo($node);
        }
    },

});

Could you help me?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!