Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

205
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda