Why the code below does not work for odoo 9, but it works for odoo 8 ...
openerp.petstore = function(instance, local) { instance.web.form.widgets = instance.web.form.widgets.extend( { 'test' : 'instance.web.form.message', }); instance.web.form.message = instance.web.form.FieldChar.extend( { template: 'test', start: function() { alert('working'); } }); }
source share