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

206
Vistas
How to extend/inherit form_view.js in odoo 15

Am using Odoo15 customized in file web\static\src\js\views\form_view.js as below method:

form_view.js

      odoo.define('web.FormRenderingEngine', function (require) {

       "use strict";

       process_group: function($group) {

              // custom Code

      }

   });

Am extending this file like as mention below:

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

return FormRenderingEngine.extend({

  process_group: function($group) {   // custom Code

}

}};

.extend or include doesn't work.

please anyone help me to resolve this.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If you look in the console log you will see the following error message:

Uncaught SyntaxError: functions cannot be labelled

It is related to form_view.js script. To create a new form renderer, you can extend the basic renderer or the form renderer like they did with the product configurator

Example:(extending the basic renderer)

odoo.define('web.FormRenderingEngine', function (require) {

"use strict";
var BasicRenderer = require('web.BasicRenderer');

var FormRenderingEngine = BasicRenderer.extend({
    process_group: function($group) {
        // custom Code
    },
});

return FormRenderingEngine;
});

In the FormRenderingEngine, you have a syntax error:

Uncaught SyntaxError: missing ) after argument list

It should end with });

about 4 years ago · Juan Pablo Isaza Denunciar
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