Hi, I'm trying to create a pop-up message that should shows itself when I save my contact record, but it doesn't work, that's my code:
odoo.define('signup_form_addon.test', function (require){
'use strict'
var FormController = require('web.FormController');
var ExtendFormController = FormController.include({
saveRecord:function(){
console.log('Contact Saved!')
var res = this._super.apply(this, arguments);
if(this.modelName == 'res.partner'){
this.do_notify('Success', 'Record Saved!');
}
return res;
}
})
});
can someone explain me what it is wrong? It just doesn't show anything.
Every help is appreciated, thanks in advance!
PS: I gave the path to manifest and added the src js code in the .xml view, and it works with a simple "console.log" so I think it is correctly declared.
How do this in odoo 16 owl ?