Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

135
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda