Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
4730 Vizualizări

I have the following settings in odoo 11, why the extend of form renderer is not working? I have tried the exact setting on the kanban view and it works nicely.
 
I am quite sure the javascript code is working, because if I log something in the extending of form view, I can see the message in the console of the browser.

odoo.define('module.my_form', function (require) {
"use strict";

var view_registry = require('web.view_registry');
var FormView = require('web.FormView');
var FormRenderer = require('web.FormRenderer')

let myFormRenderer = FormRenderer.extend({
init: function (parent, state, params) {
this._super.apply(this, arguments);
console.log("Hello")
},
})

let myFormView = FormView.extend({
config: _.extend({}, FormView.prototype.config, {
Renderer: myFormRenderer
}),
});

view_registry.add('my_custom_form', myFormView);
return myFormView;
})


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
mar. 24
956
3
feb. 19
6916
0
iun. 25
409
1
iun. 25
673
1
iun. 25
691